资源描述:
《《vb程序设计》课后题答案(vb programming questions after class answer)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、《vb程序设计》课后题答案(VBprogrammingquestionsafterclassanswer)SecondchaptersQuestionsandanswers1.describetheprocessofcreatingacompleteapplication.Answer:interfacedesign,writeevents,processcode,run,debug,savefiles2.whenyoubuildasimpleapplication,assumethattheprojecthasonlyoneformmodule.Howmanydocuments
2、areinvolvedintheproject?Ifyouwanttosaveallthefilesintheproject,whatfilesshouldyousavefirstinthecorrectoperation?Whatfiledoyouwanttosave?Whatinformationdoesthesystemappearifyoudon'tdothat?Answer:involvestwodocumentstobesaved.Savetheformfile(.Frm)first,andthensavetheprojectfile(.Vbp).Ifyousavet
3、heprojectfilefirst,thesystemwillalsopopupthefilesaveasdialogbox,whichrequirestheformfiletobesavedfirst.3.assumethatintheWindowsenvironment,whenyouwanttosaveanengineeringfile,whatisthedefaultdirectoryifyoudon'tchangethedirectoryname?Answer:VB984.whenthesizeofthetagboxisexpandedandreducedbythev
4、alueoftheCaptionproperty,whatattributesshouldbesetforthecontrol?Answer:setthelabel'Autosize'to'True.'Inwhichdirectorydoesthelargeamountofgraphicsfileprovidedby5.VB6.0?Ifyoudonothaveacomputerinstalled,howdoyouinstallthesegraphicsfiles?A:thegraphicfileprovidedbyVB6.0isintheGraphicsdirectory.6.i
5、nVB6.0,thecommandbuttonisdisplayedintwodifferentways:standardandgraphical.Whatattributesareusedtosetthecommandbutton?Ifyouchoosegraphics,whatattributesareusedtoloadthegraphics?Ifagraphicsfilehasbeenloadedinthespecifiedproperty,thecommandbuttonstillcannotdisplaythegraph,andthetextdisplayedisth
6、eCaptionpropertyset.Howdoyoucorrectit?Answer:thebuttonStyleissettoGraphical(or1).LoadgraphicsthroughthePictureproperty.ThegraphcannotbedisplayedbecausethepropertyofStyleissettoStandard(or0),andthevalueoftheCaptionpropertyisgenerallysettonullaslongasitischangedtoGraphical(or1).7.whatisthediffe
7、rencebetweenatagandatextbox?Answer:isthetexteditable?.8.whentheformhasthreetextboxesandacommandbutton,iftheprogramisrunning,youneedtofocusonthethirdtextbox,todealwithwhatpropertiesofthecontrolswhatsettings?Answer:Text3.TabIndex=0settingsshoul