Constants and Enumerations (Visual Basic)
Visual Basic supplies a number of predefined constants and enumerations for developers. Constants store values that remain constant throughout the execution of an application. Enumerations provide a convenient way to work with sets of related constants, and to associate constant values with names.
In This Section
- AppWinStyle Enumeration
Indicates the window style to use for the invoked program when calling the Shell function.
- AudioPlayMode Enumeration
Indicates how to play sounds when calling audio methods.
- BuiltInRole Enumeration
Indicates the type of role to check when calling the My.User.IsInRole Method.
- CallType Enumeration
Indicates the type of procedure being invoked when calling the CallByName function.
- CompareMethod Enumeration
Indicates how to compare strings when calling comparison functions.
- Conditional Compilation Constants
Lists predefined constants available for conditional compilation.
- DateFormat Enumeration
Indicates how to display dates when calling the FormatDateTime function.
- DateInterval Enumeration
Indicates how to determine and format date intervals when calling date-related functions.
- DeleteDirectoryOption Enumeration
Specifies what should be done when a directory that is to be deleted contains files or directories.
- DueDate Enumeration
Indicates when payments are due when calling financial methods.
- FieldType Enumeration
Indicates whether text fields are delimited or fixed-width.
- FileAttribute Enumeration
Indicates the file attributes to use when calling file-access functions.
- FirstDayOfWeek Enumeration
Indicates the first day of the week to use when calling date-related functions.
- FirstWeekOfYear Enumeration
Indicates the first week of the year to use when calling date-related functions.
- MsgBoxResult Enumeration
Indicates which button was pressed on a message box, returned by the MsgBox function.
- MsgBoxStyle Enumeration
Indicates which buttons to display when calling the MsgBox function.
- OpenAccess Enumeration
Indicates how to open a file when calling file-access functions.
- OpenMode Enumeration
Indicates how to open a file when calling file-access functions.
- OpenShare Enumeration
Indicates how to open a file when calling file-access functions.
- Print and Display Constants
Lists predefined constants available when calling print and display functions.
- RecycleOption Enumeration
Specifies whether a file should be deleted permanently or placed in the Recycle Bin.
- SearchOption Enumeration
Specifies whether to search all or only top-level directories.
- TriState Enumeration
Indicates a Boolean value or whether the default should be used when calling number-formatting functions.
- UICancelOption Enumeration
Specifies what should be done if the user clicks Cancel during an operation.
- UIOption Enumeration
Specifies whether or not to show a progress dialog when copying, deleting, or moving files or directories.
- VariantType Enumeration
Indicates the type of a variant object, returned by the VarType function.
- VbStrConv Enumeration
Indicates which type of conversion to perform when calling the StrConv function.