Welcome to the VB6 Reference Guide. This documentation covers the essential aspects of VB6 programming, organized into the following sections:
Each section contains detailed explanations, syntax, examples, and related information to help you understand and utilize VB6 effectively.
Reserved words in VB6 that have special meaning and cannot be used as identifiers.
Built-in functions that perform specific operations and return values.
Instructions that perform actions, such as loops and conditional execution.
Symbols that perform operations on variables and values.
Components that encapsulate data and behavior, such as forms and controls.
Attributes that define the characteristics of objects.
Actions that objects can perform.
Responses to actions or occurrences, such as clicks or key presses.
User interface elements that allow interaction, such as buttons and text boxes.
If you'd like to contribute to this guide, please follow the established structure and ensure that all content is original or properly cited.
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
| Property | MSAdodcLib.Adodc | MSComCtl2.Animation | MSComCtl2.DTPicker | MSComCtl2.MonthView | MSComctlLib.ImageList | MSComctlLib.ListView | MSComctlLib.ProgressBar | MSComctlLib.StatusBar | MSComctlLib.TabStrip | MSComctlLib.Toolbar | MSComctlLib.TreeView | MSComDlg.CommonDialog | MSDataGridLib.DataGrid | MSDataListLib.DataCombo | MSDataListLib.DataList | MSFlexGridLib.MSFlexGrid | MSForms.ComboBox | MSForms.Label | MSHierarchicalFlexGridLib.MSHFlexGrid | MSMask.MaskEdBox | MSWinsockLib.Winsock | PdfLib.Pdf | PhoneType.CPhone | RichTextLib.RichTextBox | Splitter.SplitterCtrl | SSDataWidgets_B.SSDBCombo | SSDataWidgets_B.SSDBDropDown | SSDataWidgets_B.SSDBGrid | SSDataWidgets_B_OLEDB.SSOleDBCombo | SSDataWidgets_B_OLEDB.SSOleDBGrid | TabDlg.SSTab | VB.CheckBox | VB.ComboBox | VB.CommandButton | VB.DirListBox | VB.DriveListBox | VB.FileListBox | VB.Form | VB.Frame | VB.HScrollBar | VB.Image | VB.Label | VB.Line | VB.ListBox | VB.MDIForm | VB.Menu | VB.OptionButton | VB.PictureBox | VB.TextBox | VB.Timer | VB.VScrollBar |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name | Name |
| Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible | Visible |
| Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled | Enabled |
| Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left | Left |
| Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top | Top |
| Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width | Width |
| Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height | Height |
| TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex | TabIndex |
| Caption | Caption | Caption | Caption | Caption | Caption | Caption | Caption | Caption | Caption | ||||||||||||||||||||||||||||||||||||||||||
| Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | Font | ||||||||
| BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | BackColor | |
| ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ForeColor | ||||||
| Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value | Value |
| Text | Text | Text | Text | Text | |||||||||||||||||||||||||||||||||||||||||||||||
| ConnectionString | ConnectionString | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Recordset | Recordset | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Refresh | Refresh | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Speed | Speed | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Cycle | |||||||||||||||||||||||||||||||||||||||||||||||||||
| Format | Format | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Date | Date | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Month | Month | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Year | Year | ||||||||||||||||||||||||||||||||||||||||||||||||||
| View | View | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Sorted | Sorted | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Items | Items | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Min | Min | Min | |||||||||||||||||||||||||||||||||||||||||||||||||
| Max | Max | Max | Max | ||||||||||||||||||||||||||||||||||||||||||||||||
| Step | Step | Step | |||||||||||||||||||||||||||||||||||||||||||||||||
| Panels | Panels | ||||||||||||||||||||||||||||||||||||||||||||||||||
| SimpleText | |||||||||||||||||||||||||||||||||||||||||||||||||||
| Tabs | Tabs | ||||||||||||||||||||||||||||||||||||||||||||||||||
| MultiRow | MultiRow | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Buttons | Buttons | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ImageList | ImageList | ImageList | |||||||||||||||||||||||||||||||||||||||||||||||||
| Nodes | Nodes | ||||||||||||||||||||||||||||||||||||||||||||||||||
| SelectedItem | SelectedItem | SelectedItem | |||||||||||||||||||||||||||||||||||||||||||||||||
| DialogType | DialogType | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Filter | Filter | ||||||||||||||||||||||||||||||||||||||||||||||||||
| FileName | FileName | ||||||||||||||||||||||||||||||||||||||||||||||||||
| DataSource | DataSource | DataSource | DataSource | ||||||||||||||||||||||||||||||||||||||||||||||||
| Columns | Columns | ||||||||||||||||||||||||||||||||||||||||||||||||||
| RowSource | RowSource | RowSource | RowSource | RowSource | |||||||||||||||||||||||||||||||||||||||||||||||
| BoundColumn | BoundColumn | BoundColumn | |||||||||||||||||||||||||||||||||||||||||||||||||
| Data | Data | Data | |||||||||||||||||||||||||||||||||||||||||||||||||
| FixedRows | FixedRows | ||||||||||||||||||||||||||||||||||||||||||||||||||
| FixedCols | FixedCols | ||||||||||||||||||||||||||||||||||||||||||||||||||
| List | List | List | |||||||||||||||||||||||||||||||||||||||||||||||||
| TextAlign | TextAlign | TextAlign | TextAlign | TextAlign | |||||||||||||||||||||||||||||||||||||||||||||||
| AutoSize | AutoSize | AutoSize | AutoSize | ||||||||||||||||||||||||||||||||||||||||||||||||
| Mask | Mask | ||||||||||||||||||||||||||||||||||||||||||||||||||
| RemoteHost | RemoteHost | ||||||||||||||||||||||||||||||||||||||||||||||||||
| RemotePort | RemotePort | ||||||||||||||||||||||||||||||||||||||||||||||||||
| LocalPort | LocalPort | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Protocol | Protocol | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Page | Page | Page | |||||||||||||||||||||||||||||||||||||||||||||||||
| PhoneNumber | PhoneNumber | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Extension | Extension | Extension | |||||||||||||||||||||||||||||||||||||||||||||||||
| RTF | RichText | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Orientation | Orientation | Orientation | Orientation | ||||||||||||||||||||||||||||||||||||||||||||||||
| Position | Position | Position | |||||||||||||||||||||||||||||||||||||||||||||||||
| MinSize | MinSize | MinSize | |||||||||||||||||||||||||||||||||||||||||||||||||
| ListStyle | ListStyle | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Cancel | Cancel | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Default | Default | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Path | Path | Path | Path | Path | Path | ||||||||||||||||||||||||||||||||||||||||||||||
| Drive | Drive | Drive | |||||||||||||||||||||||||||||||||||||||||||||||||
| FileSpec | FileSpec | ||||||||||||||||||||||||||||||||||||||||||||||||||
| BorderStyle | BorderStyle | BorderStyle | BorderStyle | BorderStyle | |||||||||||||||||||||||||||||||||||||||||||||||
| ScaleMode | ScaleMode | ScaleMode | |||||||||||||||||||||||||||||||||||||||||||||||||
| AutoScroll | AutoScroll | AutoScroll | |||||||||||||||||||||||||||||||||||||||||||||||||
| X1 | X1 | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Y1 | Y1 | ||||||||||||||||||||||||||||||||||||||||||||||||||
| X2 | X2 | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Y2 | Y2 | ||||||||||||||||||||||||||||||||||||||||||||||||||
| BorderColor | BorderColor | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Shortcut | Shortcut | ||||||||||||||||||||||||||||||||||||||||||||||||||
| MaxLength | MaxLength | ||||||||||||||||||||||||||||||||||||||||||||||||||
| PasswordChar | PasswordChar | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Interval | Interval | ||||||||||||||||||||||||||||||||||||||||||||||||||
| SmallChange | SmallChange | SmallChange | |||||||||||||||||||||||||||||||||||||||||||||||||
| LargeChange | LargeChange | LargeChange |