VISUAL BASIC PROPERTIES

Here is a list of all the properties of the instrinic VB controls combined into one table. This allows you to see which properties are common to what controls.

This table may help to demystify the large number of properties.

Control
Property pic lbl txt fra cmd chk opt cmb lst scr tim drv dir fil sha lin img dat Ole
Name x x x x x x x x x x x x x x x x x x x
Align x - - - - - - - - - - - - - - - - x  
Alignment - x x - - x x - -                    
Appearance x x x x x x x x x - - x x x - - x x x
Archive - - - - - - - - - - - - - x          
AutoActivate - - - - - - - - - - - - - - - - - - x
AutoRedraw x - - - - - - - - - - - - - - - -    
AutoSize x x - - - - - - - - - - - - - - -    
AutoVerbMenu - - - - - - - - - - - - - - - - - - x
BackColor x x x x x x x x x - - x x x x - - x x
BackStyle - x - - - - - - - - - - - - x - - - x
BOFAction - - - - - - - - - - - - - - - - - x -
BorderColor - - - - - - - - - - - - - - x x - - -
BorderStyle x x x x - - - - - - - - - - x x x - x
BorderWidth - - - - - - - - - - - - - - x x - -  
Cancel - - - - x - - - - - - - - - - - - -  
CausesValidation x - x - x x x - x x - x x x - - - - x
Caption - x - x x x x - - - - - - - - - - x  
Class - - - - - - - - - - - - - - - - - - x
ClipControls x - - x - - - - - - - - - - - - - -  
Columns - - - - - - - - x - - - - - - - - -  
Connect - - - - - - - - - - - - - - - - - x  
DatabaseName - - - - - - - - - - - - - - - - - x  
DataField x x x - - x - x x - - - - - - - x - x
DataFormat x x x - - x - x x - - - - - - - x -  
DataMember x x x - - x - x x - - - - - - - x -  
DataSource x x x - - x - x x - - - - - - - x - x
Default - - - - x - - - - - - - - - - - - -  
DefaultCursorType - - - - - - - - - - - - - - - - - x  
DefaultType - - - - - - - - - - - - - - - - - x  
DisabledPicture - - - - x x x - - - - - - - - - - -  
DisplayType - - - - - - - - - - - - - - - - - - x
DownPicture - - - - x x x - - - - - - - - - - -  
DragIcon x x x x x x x x x x - x x x - - x x x
DragMode x x x x x x x x x x - x x x - - x x x
DrawMode - - - - - - - - - - - - - - x x - -  
DrawStyle x - - - - - - - - - - - - - - - - -  
DrawWidth x - - - - - - - - - - - - - - - - -  
Enabled x x x x x x x x x x x x x x - - x x x
EOFAction - - - - - - - - - - - - - - - - - x  
Exclusive - - - - - - - - - - - - - - - - - x  
FillColor x - - - - - - - - - - - - - x - - -  
FillStyle x - - - - - - - - - - - - - x - - -  
Font x x x x x x x x x - - x x x - - - x  
FontTransparent x - - - - - - - - - - - - - - - - -  
ForeColor x x x x - x x x x - - x x x - - - x  
HasDC x - - - - - - - - - - - - - - - - -  
Height x x x x x x x x x x - x x x x - x x x
HelpContextID x - x x x x x x x x - x x x - - - - x
Hidden - - - - - - - - - - - - - x - - - -  
HideSelection - - x - - - - - - - - - - - - - - -  
HostName - - - - - - - - - - - - - - - - - - x
Index x x x x x x x x x x x x x x x x x x x
LargeChange - - - - - - - - - x - - - - - - - -  
IntegralHeight - - - - - - - x x - - - - - - - - -  
Interval - - - - - - - - - - x - - - - - - -  
ItemData - - - - - - - x x - - - - - - - - -  
Left x x x x x x x x x x x x x x x - x x x
LinkItem x x x - - - - - - - - - - - - - - -  
LinkMode x x x - - - - - - - - - - - - - - -  
LinkTimeOut x x x - - - - - - - - - - - - - - -  
LinkTopic x x x - - - - - - - - - - - - - - -  
List - - - - - - - x x - - - - - - - - -  
Locked - - x - - - - x - - - - - - - - - -  
MaskColor - - - - x x x - - - - - - - - - - -  
Max - - - - - - - - - x - - - - - - - -  
MaxLength - - x - - - - - - - - - - - - - - -  
Min - - - - - - - - - x - - - - - - - -  
MiscFlags - - - - - - - - - - - - - - - - - - x
MouseIcon x x x x x x x x x x - x x x - - x x x
MousePointer x x x x x x x x x x - x x x - - x x x
MultiLine - - x - - - - - - - - - - - - - - -  
MultiSelect - - - - - - - - x - - - - x - - - -  
Negotiate x - - - - - - - - - - - - - - - - x  
Normal - - - - - - - - - - - - - x - - - -  
OLEDragMode x - x - - - - x x - - - x x - - x -  
OLEDropAllowed - - - - - - - - - - - - x - - - - - x
OLEDropMode x x x x x x x x x - - x - x - - x x  
OLETypeAllowed - - - - - - - - - - - - - - - - - - x
Options - - - - - - - - - - - - - - - - - x  
PasswordChar - - x - - - - - - - - - - - - - - -  
Pattern - - - - - - - - - - - - - x - - - -  
Picture x - - - x x x - - - - - - - - - x -  
ReadOnly - - - - - - - - - - - - - x - - - x  
RecordsetType - - - - - - - - - - - - - - - - - x  
RecordSource - - - - - - - - - - - - - - - - - x  
RightToLeft x x x x x x x x x x - - - - - - - x  
ScaleHeight x - - - - - - - - - - - - - - - - -  
ScaleLeft x - - - - - - - - - - - - - - - - -  
ScaleMode x - - - - - - - - - - - - - - - - -  
ScaleTop x - - - - - - - - - - - - - - - - -  
ScaleWidth x - - - - - - - - - - - - - - - - -  
ScrollBars - - x - - - - - - - - - - - - - - -  
Shape - - - - - - - - - - - - - - x - - -  
SizeMode - - - - - - - - - - - - - - - - - - x
SmallChange - - - - - - - - - x - - - - - - - -  
Sorted - - - - - - - x x - - - - - - - - -  
SourceDoc - - - - - - - - - - - - - - - - - - x
SourceItem - - - - - - - - - - - - - - - - - - x
Stretch - - - - - - - - - - - - - - - - x -  
Style - - - - x x x x x - - - - - - - - -  
System - - - - - - - - - - - - - x - - - -  
TabIndex x x x x x x x x x x - x x x - - - - x
TabStop x - x - x x x x x x - x x x - - - - x
Tag x x x x x x x x x x x x x x x x x x x
Text - - x - - - - x - - - - - - - - - -  
ToolTipText x x x x x x x x x - - x x x - - x x  
Top x x x x x x x x x x x x - x x - x x x
UpdateOptions - - - - - - - - - - - - - - - - - - x
UseMaskColor - - - - x x x - - - - - - - - - - -  
UseMnemonic - x - - - - - - - - - - - - - - - - -
Value - - - - - x x - - x - - - - - - -    
Verb - - - - - - - - - - - - - - - - - - x
Visible x x x x x x x x x x - x x x x x x x x
WhatsThisHelpID x x x x x x x x x x - x x x - - x x x
Width x x x x x x x x x x - x x x x - x x x
WordWrap - x                                  
X1 - - - - - - - - - - - - - - - x      
X2 - - - - - - - - - - - - - - - x      
Y1 - - - - - - - - - - - - - - - x      
Y2 - - - - - - - - - - - - - - - x      
Property pic lbl txt fra cmd chk opt cmb lst scr tim drv dir fil sha lin img dat Ole
Control

All controls have a name property. (How the programmer refers to the control in code.)

Almost every control have Left, Width, Top, Height, Enabled and Visible properties.

Most controls have Appearance, BackColor, DragIcon, DragMode, MousePointer etc. properties.

Some properties belong to only one control.



Back to basic page