Professional Documents
Culture Documents
Pertemuan 3 - Control
2
Visual Basic Start Page
3
Start a New Project
4
New Project Dialog Box
select
click on OK button
5
Initial Visual Basic Screen
6
Toolbox
7
4 Ways to Place a Control from the
Toolbox onto the Form Designer
• Double-click
• Drag and Drop
• Click, Point, and Click
• Click, Point, and Drag
8
Four Controls at Design Time
text box
Tasks button
sizing handles
10
Label and Textbox
• Textbox Properties
• PasswordChar
• Multiline
• ScrollBards
• ReadOnly
Properties Window
Press F4 to
display the
Properties
window for
the selected
control.
selected
control
properties settings
Description
13
pane
Some Often Used Properties
• Text
• Autosize
• Font.Name
• Font.Size
• ForeColor
• BackColor
• ReadOnly
14
Setting Properties
15
Setting the ForeColor Property
1. Click on ForeColor.
2. Click on button at
right of settings box.
3. Click on Custom tab
to obtain display
shown.
4. Click on a color.
16
Font Property
1. Click on Font
in left column.
2. Click on
ellipsis at right
of settings box
to obtain
display shown.
3. Make
selections. 17
Button
• Properties
• Name
• Text
• Image
• ImageAlign
• TextAlign
Button
• The message Smile will show when user press the enter button
Button Control
Text
property
22
Add an Access Key
23
Label Control
24
List Box Control
25
Checkbox and Radio Button
Combo Box
ListBox
Checked Listbox
The Name Property
30
Control Name Prefixes
31
Renaming the Form
32
Fonts
33
Auto Hide
push pin
34
Positioning Controls
proximity
line
35
Aligning Bottoms of Controls
snap line
36
Aligning Middles of Controls
snap line
37
Tab Order