Share via


Enumerations Declared by Visual Basic

Enumerations provide a convenient way to work with sets of related constants and to associate constant values with names. Visual Basic provides a number of useful enumerations.

Predefined Enumerations

The following table lists and describes the enumerations provided by Visual Basic.

Enumeration

Description

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 the type of procedure being invoked when calling the CallByName function.

CompareMethod Enumeration

Indicates how to compare strings when calling comparison functions.

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 type of access when calling file-access functions.

OpenMode Enumeration

Indicates mode that should be used when calling file-access functions.

OpenShare Enumeration

Indicates whether a file can be used by other processes when calling file-access 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 either a Boolean value or that 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 box 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.

DueDate Enumeration

Indicates when payments are due when calling financial methods.

See Also

Tasks

How to: Declare Enumerations

How to: Refer to an Enumeration Member

How to: Iterate Through An Enumeration in Visual Basic

How to: Determine the String Associated with an Enumeration Value

Concepts

Enumerations and Name Qualification

When to Use an Enumeration