278 SOF T WARE ENGINEERING AND TESTING
2- Cross Cross type mouse icon appears
3- I–Beam I Beam type mouse icon appears
99- Custom Mouse icon can be customized
Picture To locate and display the picture file
ToolTipText Text to be shown when mouse pointer is over
the control
Top Distance in twips from top of the Form
Visible True Control becomes visible
False Control becomes invisible
Width Sets the width of the control
Label
Property Setting Description
Alignment 0- Left Justify Caption of the control is left aligned
1- Right Justify Caption of the control is right aligned
2- Center Caption of control is center aligned
Appearance 0- Flat Control appears flat
1- 3 D Control has 3-D appearance
AutoSize True Size of the control gets resized according to the
length of the caption
False Size of the control is fixed
BackColor Sets the back color of the control
BackStyle 0- Transparent Back color of the control is transparent
1- Opaque Back color of the control is opaque and can be
set to any color
BorderStyle 0- None Control without border
1- Fixed Single Control with fixed border
Caption Caption that is displayed with the control
Font Sets the font of the control
CONTROLS IN VISUAL BASIC 279
Forecolor Sets the fore color of the control
Height Sets the height of the control
Left Distance in twips from left side of the form
MouseIcon To locate the icon file if the MouseIcon property
is set to 99-Custom
MousePointer 0- Default Default mouse icon appears
1- Arrow Arrow type mouse icon appears
2- Cross Cross type mouse icon appears
3- I–Beam I Beam type mouse icon appears
99- Custom Mouse icon can be customized
ToolTipText Text to be shown when mouse pointer is over
the control
Top Distance in twips from top of the Form
Visible True Control becomes visible
Text Box
Property Setting Description
Alignment 0- Left Justify Text of the control is left aligned
1- Right Justify Text of the control is right aligned
2- Center Text of the control is center aligned
Appearance 0- Flat Control appears flat
1- 3 D Control has 3-D appearance
BackColor Sets the back color of the control
BorderStyle 0- None Control without border
1- Fixed Single Control with fixed border
Enabled True Text Box becomes enabled
False Text Box becomes disabled
Font Sets the font of the control
ForeColor Sets the fore color of the control
280 SOF T WARE ENGINEERING AND TESTING
Height Sets the height of the control
Left Distance in twips from left side of the
Form
Locked True No text can be entered during run-time
False Text can be entered during run-time
MaxLength Maximum length of the text that can be
entered
MultiLine True Text can be entered in more than one
line
False Text can be entered only in one line
PasswordChar If ‘*’ is given it appears in Text Box in
place of all the characters entered
Scroll Bars 0- None No scroll bar appears (default setting)
1- Horizontal Horizontal scroll bar appears (If multiline
property is True)
2- Vertical Vertical scroll bar appears (If multiline
property is True)
3- Both Both scroll bars appear (If multiline
property is True)
TabIndex Sets the order of movement of the cursor
when pressing Tab key
(Index number starts from 0)
TabStop True Cursor moves to that control if the Tab
key is pressed
False Cursor does not move to that control if
the Tab key is pressed
Text The text that appears in the Text Box
ToolTipText Text to be shown when mouse pointer is
over the control
Top Distance in twips from the top of the
Form
Visible True Control becomes visible
CONTROLS IN VISUAL BASIC 281
False Control becomes invisible
Width Sets the width of the control
Frame
Property Setting Description
Name Gives a name to the control
Appearance 0- Flat Control appears flat
1- 3 D Control has 3-D appearance
BackColor Sets the back color of the control
BorderStyle 0- None Control without a border
1- Fixed Single Control with a fixed border
Caption Caption that is displayed with the
control
Enabled True Control becomes enabled
False Control becomes disabled
Font Sets the font of the control
ForeColor Sets the fore color of the control
Height Sets the height of the control
Index Sets the control array
Left Distance in twips from left side of the
Form
MouseIcon To locate the icon file if the MouseIcon
property is set to 99-Custom
MousePointer 0- Default Default mouse icon appears
1- Arrow Arrow type mouse icon appears
2- Cross Cross type mouse icon appears
3- I-Beam I-Beam type mouse icon appears
99- Custom Mouse icon can be customized

Get Software Engineering and Testing now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.