4. What we will see…
9/27/2018
Dr.AtifShahzad
Adding Controls & Setting
Properties
Connecting Forms
• Calling Forms
Setting Initial Form Setting properties for Radio
Setting properties for Check
Combo Picture
Picture using Resources
List
11. Visual Studio Generated Code
9/27/2018
Dr.AtifShahzad
11
Auto-generated code
Designer.cs of a Form
InitializeComponent(); //called when Form is created
12. Few common Control Properties &
Layout
9/27/2018
Dr.AtifShahzad
12
Name
BackColor
Enabled
Focused
Font
ForeColor
Text
Visible
23. Picturebox
9/27/2018
Dr.AtifShahzad
23
AutoSize - Sizes the picture box to the image.
CenterImage - Centers the image in the picture box.
Normal - Places the upper-left corner of the image at upper
left in the picture box
StretchImage - Allows you to stretch the image in code
27. Rest is onVisual Studio
For the rest of this lecture, Please refer to
the Code files demonstrated in the class
and uploaded on BB
9/27/2018
Dr.AtifShahzad
27