Solutions for Starting Out With Visual C# 4th Us Edition by Gaddis

Page 1


Chapter 2: Answers to the Review Questions

1. Aboundingboxindicatesthatanobjectisselectedandreadyforediting 2. Themousecursorbecomesatwo-headedarrow 3. Anobject’sproperties

4. Theleftcolumnshowsthenameofeachpropertyandtherightcolumnshowsthevalueofeach property

5. Selecttheform.Locatetheform’sTextpropertyinsidethe Properties window.Clickinsidethe areathatholdstheTextproperty’svalue,andusetheDeleteorBackspacekeytodeletethe text.TypethenewvalueinitsplaceandpresstheEnterkey.

6. (1)Usingthemousetodragthesizinghandlesontheform’sboundingboxand(2)changingthe widthandheightvaluesoftheSizepropertyinthePropertieswindow.

7. Positionthemousecursorinsidethecontrol,andwhenthemousecursorbecomesafourheadedarrow,youcanclickanddragthecontroltoanewlocation.

8. SelecttheButtoncontrol.Locatethebutton’sTextpropertyinsidethe Properties window.Click insidetheareathatholdstheTextproperty’svalue,andusetheDeleteorBackspacekeyto deletethetext.TypethenewtextinitsplaceandpresstheEnterkey.

9. TheForm1.csfilecontainscodethatisassociatedwiththeForm1form.Whenyouwritecode thatdefinessomeactionrelatedtoForm1youwillwritethecodeinthisfile.

10. Double-quotationmarks

11. No,youcannotskipthisstep.Whenyoudouble-clickacontrolintheDesigner,VisualStudionot onlycreatesanemptyeventhandler,butitalsowritessomecodethatyoudon'tsee,elsewhere intheproject.Thisothercodeisnecessaryfortheeventhandlertoproperlyfunction.

12. Designtimeisthephaseduringwhichyoucreateormodifytheapplication.Runtimeiswhen theapplicationisexecutinganditcannotbemodified.

13. TheLabelcontrol'stextwillhavearecessed3Dappearance

14. Thecontrolautomaticallyresizesitselftoaccommodatethesizeofthetextitdisplays

15. TopLeft,TopCenter,TopRight,MiddleLeft,MiddleCenter,MiddleRight,BottomLeft, BottomCenter,orBottomRight.

16. Assignanemptystringtothecontrol'sTextproperty.

17. APictureBoxcontrolcandisplayimagesthathavebeensavedinthebitmap,GIF,JPEG,metafile, oricongraphicsformats.

18. Normal,StretchImage,AutoSize,CenterImage,andZoom

19. Linecomments,blockcomments,anddocumentationcomments.

20. Whenyouenterastatementintotheeditor,VisualStudioanalyzesit,andifasyntaxerroris found,itisunderlinedwithajaggedline.

Algorithm Workbench

1. MessageBox.Show("Good Afternoon");

Starting Out With Visual C#, 4th Edition

2. MessageBox.Show("Kathryn James");

3. dogLabel.Text = "Fido";

4. outputLabel.Text = "";

5. myPicture.Visible = false;

Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.
Solutions for Starting Out With Visual C# 4th Us Edition by Gaddis by 6alsm - Issuu