VB.NET Language Pocket Reference
1.7 Constants
VB recognizes the following intrinsic constants:
1.7.1 Call Type Constants
| vbGet | vbMethod |
| vbLet | vbSet |
1.7.2 Comparison Constants
| vbBinaryCompare | vbTextCompare |
1.7.3 Date and Time Constants
| vbSunday | vbSaturday |
| vbMonday | vbUseSystem |
| vbTuesday | vbUseSystemDayOfWeek |
| vbWednesday | vbFirstJan1 |
| vbThursday | vbFirstFourDays |
| vbFriday | vbFirstFullWeek |
1.7.4 Date Format Constants
| vbGeneralDate | vbShortDate |
| vbLongDate | vbShortTime |
| vbLongTime |
1.7.5 Error Constant
| vbObjectError |
1.7.6 File Attributes
| vbArchive | vbNormal |
| vbDirectory | vbSystem |
| vbHidden | vbVolume |
| vbReadOnly |
1.7.7 Logical and Tristate Constants
| False | vbTrue |
| True | vbUseDefault |
| vbFalse |
1.7.8 Message Box Constants
1.7.8.1 Buttons constants
| vbAbortRetryIgnore | vbRetryCancel |
| vbMsgBoxHelp | vbYesNo |
| vbOKCancel | vbYesNoCancel |
| vbOKOnly |
1.7.8.2 Default button constants
| vbDefaultButton1 | vbDefaultButton3 |
| vbDefaultButton2 |
1.7.8.3 Icon constants
| vbCritical | vbInformation |
| vbExclamation | vbQuestion |
1.7.8.4 Modality constants
| vbApplicationModal | vbSystemModal |
1.7.8.5 Return value constants
| vbAbort | vbOK |
| vbCancel | vbRetry |
| vbIgnore | vbYes |
| vbNo |
1.7.8.6 Miscellaneous constants
| vbMsgBoxRight | vbMsgBoxSetForeground |
| vbMsgBoxRtlReading |
1.7.9 Special Character Constants
| vbBack | vbNewLine |
| vbCr | vbNullChar |
| vbCrLf | vbNullString |
| vbFormFeed | vbTab |
| vbLf | vbVerticalTab |
1.7.10 Variable Subtype Constants
| vbArray | vbInteger |
| vbBoolean | vbLong |
| vbByte | vbNull |
| vbCurrency | vbObject |
| vbDate | vbSingle |
| vbDecimal | vbString |
| vbDouble | vbUserDefinedType |
| vbEmpty | vbVariant |
1.7.11 Window Style Constants
| vbHide | vbNarrow |
| vbHiragana | vbNormalFocus |
| vbKatakana | vbNormalNoFocus |
| vbLinguisticCasing | vbProperCase |
| vbLowerCase | vbSimplifiedChinese |
| vbMaximizedFocus | vbTraditionalChinese |
| vbMinimizedFocus | vbUpperCase |
| vbMinimizedNoFocus | vbWide |
User-defined constants can be declared using the Const statement.