程序设计基础答案

程序设计基础答案

ID:30920000

大小:142.44 KB

页数:19页

时间:2019-01-04

程序设计基础答案_第1页
程序设计基础答案_第2页
程序设计基础答案_第3页
程序设计基础答案_第4页
程序设计基础答案_第5页
资源描述:

《程序设计基础答案》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

1、程序设计基础答案ProblemsetsChapter1theVisualBasic6.0programmingoverviewOne,thequestionSquarerootof2.Thesamekindofcontrols(liketwolabels)overlap,andwhendesigned,youcansetthe"before"and"after"properties・5.4.)x6.)7.X8.Tick9.)10.X11.Tick12.SquarerootIt'sthesquarerootofthesquarerootofthesq

2、uarerootofthesquarerootof18.2ChoicequestionA.b.b.c.c.d.c.d.d.3,fillintheblanksObject,event2.Properties,methods,events3.Control,Screen(Screen)Object4.5.TheLeftandTop6.Attribute,object=>

3、omaticexecutionisalsolisted)10.ActivateandDeactivateFour,programmingproblemsProgram1.Theinterfacedesignisshowninfigure10~l,10~2,andtable10T.Table10-1instance2mainpropertySettingsforeachcontrolcontrolsProperties(attributevalues)Properties(attributevalues)Labelcontrols1TheName(L

4、abel1)Caption(“myfirstVBprogram“)Labelcontrols2TheName(Label2)Caption(“pleaseenteryourname“)FontUnderLine(True)Fontltalic(True)Acommandbutton1TheName(Command1)Caption(“confirmation(&o)“)Acommandbutton2TheName(Coininand2)TheCaption(“endof&x“)Theprocessdesignisasfollows:Privates

5、ubForm_Click()Command2.enabled二FalseEenSubPrivateSubCommandlClick()Labe12.Visible二FalseLabel1.Caption二Textl・Text+〃:welcometouse"+Label1Text1.Visible二FalseCommandl.enabled二False:command2.enabled二TrueEndSubPrivateSubCommand2_Click()TheEndEndSubProgram2.Theinterfacedesignisslight

6、ly,theprocessdesignisasfollows:ThePrivateSubCommandl_Click()'fontgetslargerForm1.FontSize二form1.fontsize+3Cis:Print"welcometoVB〃EndSubThePrivateSubCommand2_Click()'fontgetssmallerForm1.FontSize二Form1.FontSize一3Cis:Print"welcometoVB〃EndSubThePrivateSubCommand3Click()'fontisbold

7、Form1.FontBold=TrueCis:Print"welcometoVB〃EndSubPrivateSubCominand4_Click()'fontisnotboldForm1.FontBold二FalseCis:Print"welcometoVB〃EndSubAtruntime,itisnotpossibletoclickthe"fontsize"buttoninarow,becausewhentheFontSizeattributevalueislessthan0,itwillcauseatimelyerror・Program3.In

8、terfacedesignslightly,theprocessdesignisasfollows(formHeightv

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。