Visual Basic Enumerations

The following is a list of VB enumerations, along with the VB constants that can be used in place of individual enumeration members. In a few cases, there seem to be missing VB intrinsic constants. These are marked with a question mark (?).

Note that all enumeration members must be qualified with the name of the enumeration to which they belong.

AppWinStyle Enumeration

Enum AppWinStyle
    Hide = 0                            ' VbHide
    NormalFocus = 1                     ' VbNormalFocus
    MinimizedFocus = 2                  ' VbMinimizedFocus
    MaximizedFocus = 3                  ' VbMaximizedFocus
    NormalNoFocus = 4                   ' VbNormalNoFocus
    MinimizedNoFocus = 6                ' VbMinimizedNoFocus
End Enum

CallType Enumeration

Enum CallType
    Method = 1                          ' VbMethod
    Get = 2                             ' VbGet
    Let = 4                             
    Set = 8                             ' VbSet
End Enum

CompareMethod Enumeration

Enum CompareMethod
    Binary = 0                          ' VbBinaryCompare
    Text = 1                            ' VbTextCompare
End Enum

DateFormat Enumeration

Enum DateFormat
    GeneralDate = 0                     ' VbGeneralDate
    LongDate = 1                        ' VbLongDate
    ShortDate = 2                       ' VbShortDate
    LongTime = 3                        ' VbLongTime
    ShortTime = 4                       ' VbShortTime
End Enum

DateInterval Enumeration

Enum DateInterval
    Year = 0
    Quarter = 1
    Month = 2
    DayOfYear = 3
    Day = 4
    WeekOfYear = 5
    Weekday = 6
    Hour = 7
    Minute = 8
    Second = 9
End Enum

DueDate Enumeration

Enum DueDate
    EndOfPeriod = 0
    BegOfPeriod = 1
End Enum

FileAttribute Enumeration

Enum FileAttribute
    Normal = 0                          ' VbNormal
    ReadOnly = 1                        ' VbReadOnly
    Hidden = 2                          ' VbHidden
    System = 4                          ' VbSystem
    Volume = 8                          ' VbVolume
    Directory = 16                      ' VbDirectory
    Archive = 32                        ' VbArchive
End Enum

FirstDayOfWeek Enumeration ...

Get VB.NET Language in a Nutshell, Second Edition now with O’Reilly online learning.

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