Controls and Form Properties
Controls and Form Properties
COMPUTER PROGRAMMING I
Essential Standard and Objectives
3. In Recent Projects,
Create: Project,
click Project
Creating a New Project
Special Note:
Toolbox
Properties
Window
Designer Window
The Solution Explorer Window
View Designer
Properties
My Project files
Show All Files
Designer Window
Contains a Form.
To Change the size of the Form
1. Click and Drag the Sizing Handles on the Corner of the Form
or
2. Change the Size Properties (Measured in Pixels) on the
Properties Window.
The Editor Window
Name
Font
AutoSize
BackColor
ForeColor
Enabled
Size
Text
The Toolbox
Button
clicked by the user to perform an action or group of actions.
TextBox
used to gather input from a user or to display text back to the user.
Label
used to display information to the user either to identify another
object, provide instructions, or display output.
ListBox
used to display a list of items for a user to select. Multiple items can
be selected.
Common Controls
ComboBox
A drop down menu that also allows a user to type in an entry or
select an option.
Combines a ListBox and a TextBox
CheckBox
Usually found in a group box
Allows users to provide multiple inputs to answer a question
RadioButton
Used with group boxes
Allows user to make only one choice from the options in the group.
PictureBox
used to display a picture or image to the user.
Adding a Control
• Moving an object
– Drag a control object to move it.
– You can select a group to move together
Designing a Form
Implementi
Generating a ng the event
Adding handler
Windows controls and
Form and (method
setting its that are
setting its properties
properties called in
response to
an event)
Label, Textboxes and Buttons