O'Reilly logo

VB .NET Language in a Nutshell by Steven Roman PhD, Paul Lomax, Ron Petrusha

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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
    Set = 8                             ' VbSet, vbLet
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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required