资源描述:
《vb程序设计上机题目(vb programming topics)》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、vb程序设计上机题目(VBprogrammingtopics)Forty-five1.basicoperations(2items,eachitemof15points,atotalof30points)Note:thefollowing"candidatesfolder"are%USER%**********************************************************************PleaseaccordingtothefollowingquestionsofthedesignrequirementsofVisualBasicap
2、plications(includingtheinterfaceandcode).(1)draw1imageframesnamedImage1ontheformnamedForm1,whichistitled"picture"Theheightis2500andthewidthis2000.PleasesettheappropriateattributethroughtheattributewindowandloaditintotheexamineedirectoryPicturefilepic1.jpg,andmakethepictureadapttothesizeofthe
3、imagebox(asshown).Becareful:Storagemustbestoredintheexamineefolder,theprojectfilenamedsjt1.vbp,theformfilenameForsjt1.frm.**********************************************************************(2)ontheformnamedForm1,draw1textboxesnamedText1,whoseinitialcontentisempty;andthenthetextboxisemptyD
4、raw2radiobuttons,thenamesareOption1,Option2,thetitlesare"participation"and"no"Takethetitleof"Option1"ontheleftoftheradiobutton,asshowninthepicture.Whentheprogramisrunning,EntersometextinText1(e.g.,"match")andclicktheOption1,thenputthetitleonitEnterthefrontofthetext(forexample,"participateint
5、hecontest")andclicktheOption2,andthenputthetitleonthelineEnterthebackofthetext(forexample,"notparticipatinginthecompetition").PleasewritetheappropriateeventprocesstocompletetheaboveFunction.Becareful:Whenyousave,savethefiletotheexamineefolder,theformfileiscalledsjt2.frm,engineeringdocumentTh
6、epieceiscalledsjt2.vbp.Novariablesarerequiredintheprogram,andonlyonecanbewrittenineacheventSentence。analyseandcommentonFirsta.:CreateaformForm1,andsettheCaptionpropertyoftheformForm1throughthepropertywindowas"picture"".ClicktheImagecontrolfromthetoolboxicon,thendragintheformofanimageframebyI
7、mage1,thepropertieswindowsetitsHeightpropertyto2500,theWidthpropertyis2000,theStretchpropertyisTrue,andthePictureattributeaddthecandidatesfolderunderthepicturefilepic1.jpg.Savethefileasrequiredandcompletethequestion.Seconda.:CreateanewformForm1,cli