# Constants module

The VBRUN **Constants** module collects the named-integer enumerations that classic VB6 forms, intrinsic controls, and runtime services use to spell out their option values --- colours, mouse pointers, key codes, drag/drop states, OLE container behaviour, printer setup values, and so on. There are no standalone constants in this module; everything is grouped into an enumeration so that **IntelliSense** can offer the right options at each property or argument.

Some enumerations are tagged **\[MustBeQualified\]** in the source --- their members must be referenced through the enum name (e.g. `ControlBorderStyleConstantsCustom.vbCustomBorder`) to avoid clashing with members of similarly named enumerations. This is noted on those enum's pages.

## Enumerations

- [AlignConstants](/tB/Packages/VBRUN/Constants/AlignConstants.md) -- alignment values for the **Align** property (none, top, bottom, left, right)
- [AlignmentConstants](/tB/Packages/VBRUN/Constants/AlignmentConstants.md) -- text alignment values (left, right, centred)
- [AlignmentConstantsNoCenter](/tB/Packages/VBRUN/Constants/AlignmentConstantsNoCenter.md) -- text alignment values without a centred option
- [AppearanceConstants](/tB/Packages/VBRUN/Constants/AppearanceConstants.md) -- flat or 3-D drawing style for controls
- [ApplicationStartConstants](/tB/Packages/VBRUN/Constants/ApplicationStartConstants.md) -- whether the application was started standalone or via Automation
- [AspectTypeConstants](/tB/Packages/VBRUN/Constants/AspectTypeConstants.md) -- rendering aspects of an OLE object (content, thumbnail, icon, print)
- [AsyncReadConstants](/tB/Packages/VBRUN/Constants/AsyncReadConstants.md) -- flags for **UserControl.AsyncRead**
- [AsyncStatusCodeConstants](/tB/Packages/VBRUN/Constants/AsyncStatusCodeConstants.md) -- status codes reported by the **AsyncReadProgress** event
- [AsyncTypeConstants](/tB/Packages/VBRUN/Constants/AsyncTypeConstants.md) -- the kind of data being read in **UserControl.AsyncRead**
- [BackFillStyleConstants](/tB/Packages/VBRUN/Constants/BackFillStyleConstants.md) -- whether a control's background fill is opaque or transparent
- [BorderStyleConstants](/tB/Packages/VBRUN/Constants/BorderStyleConstants.md) -- line style for drawn shapes (solid, dashed, dotted, transparent, ...)
- [ButtonConstants](/tB/Packages/VBRUN/Constants/ButtonConstants.md) -- standard or graphical button style
- [CheckBoxConstants](/tB/Packages/VBRUN/Constants/CheckBoxConstants.md) -- state of a check box (unchecked, checked, grayed)
- [ClipboardConstants](/tB/Packages/VBRUN/Constants/ClipboardConstants.md) -- clipboard format identifiers (`vbCFText`, `vbCFBitmap`, ...)
- [ColorConstants](/tB/Packages/VBRUN/Constants/ColorConstants.md) -- common named colours (`vbBlack`, `vbBlue`, `vbRed`, ...)
- [ComboBoxConstants](/tB/Packages/VBRUN/Constants/ComboBoxConstants.md) -- combo-box style (drop-down, simple, drop-down list)
- [ControlBorderStyleConstants](/tB/Packages/VBRUN/Constants/ControlBorderStyleConstants.md) -- single-border style (none or fixed single)
- [ControlBorderStyleConstantsCustom](/tB/Packages/VBRUN/Constants/ControlBorderStyleConstantsCustom.md) -- single-border style with a custom-drawn option
- [ControlTypeConstants](/tB/Packages/VBRUN/Constants/ControlTypeConstants.md) -- identifiers for the standard intrinsic control types
- [DataBOFconstants](/tB/Packages/VBRUN/Constants/DataBOFconstants.md) -- action when a Data control reaches the start of a recordset
- [DataEOFConstants](/tB/Packages/VBRUN/Constants/DataEOFConstants.md) -- action when a Data control reaches the end of a recordset
- [DataErrorConstants](/tB/Packages/VBRUN/Constants/DataErrorConstants.md) -- response to an error from a data binding operation
- [DataValidateConstants](/tB/Packages/VBRUN/Constants/DataValidateConstants.md) -- actions reported in a Data control's **Validate** event
- [DatabaseTypeConstants](/tB/Packages/VBRUN/Constants/DatabaseTypeConstants.md) -- database engine to use with the Data control (ODBC, Jet, ACE)
- [DefaultCursorTypeConstants](/tB/Packages/VBRUN/Constants/DefaultCursorTypeConstants.md) -- cursor type for a Data control connection
- [DockModeConstants](/tB/Packages/VBRUN/Constants/DockModeConstants.md) -- dock-edge values for forms and toolbars
- [DragConstants](/tB/Packages/VBRUN/Constants/DragConstants.md) -- states reported by **DragDrop**/**DragOver**
- [DragModeConstants](/tB/Packages/VBRUN/Constants/DragModeConstants.md) -- automatic or manual drag mode
- [DragOverConstants](/tB/Packages/VBRUN/Constants/DragOverConstants.md) -- enter/leave/over state values during a drag-over event
- [DrawModeConstants](/tB/Packages/VBRUN/Constants/DrawModeConstants.md) -- raster operation for **PSet**/**Line**/**Circle** drawing
- [DrawStyleConstants](/tB/Packages/VBRUN/Constants/DrawStyleConstants.md) -- line style for drawn lines and shape outlines
- [FillStyleConstants](/tB/Packages/VBRUN/Constants/FillStyleConstants.md) -- fill pattern for filled shapes
- [FillStyleConstantsEx](/tB/Packages/VBRUN/Constants/FillStyleConstantsEx.md) -- fill pattern with twinBASIC gradient extensions
- [FormArrangeConstants](/tB/Packages/VBRUN/Constants/FormArrangeConstants.md) -- MDI child arrangement modes (cascade, tile, ...)
- [FormBorderStyleConstants](/tB/Packages/VBRUN/Constants/FormBorderStyleConstants.md) -- form window border style (sizable, fixed dialog, tool window, ...)
- [FormShowConstants](/tB/Packages/VBRUN/Constants/FormShowConstants.md) -- whether a form is shown modal or modeless
- [FormWindowStateConstants](/tB/Packages/VBRUN/Constants/FormWindowStateConstants.md) -- normal, minimised, or maximised window state
- [HitResultConstants](/tB/Packages/VBRUN/Constants/HitResultConstants.md) -- return values from a **UserControl** **HitTest** event
- [KeyCodeConstants](/tB/Packages/VBRUN/Constants/KeyCodeConstants.md) -- virtual-key code values for **KeyDown**/**KeyUp**
- [LinkModeConstants](/tB/Packages/VBRUN/Constants/LinkModeConstants.md) -- DDE link mode (none, automatic, manual, notify)
- [ListBoxConstants](/tB/Packages/VBRUN/Constants/ListBoxConstants.md) -- list-box style (standard, check-box, colour swatch)
- [LoadPictureColorConstants](/tB/Packages/VBRUN/Constants/LoadPictureColorConstants.md) -- colour-depth flag for **LoadPicture**
- [LoadPictureSizeConstants](/tB/Packages/VBRUN/Constants/LoadPictureSizeConstants.md) -- size selector for **LoadPicture**
- [LoadResConstants](/tB/Packages/VBRUN/Constants/LoadResConstants.md) -- resource type for **LoadResPicture**
- [LogEventTypeConstants](/tB/Packages/VBRUN/Constants/LogEventTypeConstants.md) -- severity for **LogEvent** (error, warning, information)
- [LogModeConstants](/tB/Packages/VBRUN/Constants/LogModeConstants.md) -- destination and behaviour flags for the application log
- [MenuAccelConstants](/tB/Packages/VBRUN/Constants/MenuAccelConstants.md) -- keyboard-accelerator codes for menu items
- [MenuControlConstants](/tB/Packages/VBRUN/Constants/MenuControlConstants.md) -- alignment and triggering options for popup menus
- [MouseButtonConstants](/tB/Packages/VBRUN/Constants/MouseButtonConstants.md) -- bit flags for the pressed mouse buttons (left, right, middle)
- [MousePointerConstants](/tB/Packages/VBRUN/Constants/MousePointerConstants.md) -- cursor shape for the **MousePointer** property
- [MultiSelectConstants](/tB/Packages/VBRUN/Constants/MultiSelectConstants.md) -- multi-selection mode for a list box
- [NegotiatePositionConstants](/tB/Packages/VBRUN/Constants/NegotiatePositionConstants.md) -- positioning of OLE-negotiated menus
- [OLEContainerActivateConstants](/tB/Packages/VBRUN/Constants/OLEContainerActivateConstants.md) -- when the **OLE** container activates its embedded object
- [OLEContainerConstants](/tB/Packages/VBRUN/Constants/OLEContainerConstants.md) -- combined enumeration of all **OLE** container option values
- [OLEContainerDisplayTypeConstants](/tB/Packages/VBRUN/Constants/OLEContainerDisplayTypeConstants.md) -- whether to show content or icon
- [OLEContainerSizeModeConstants](/tB/Packages/VBRUN/Constants/OLEContainerSizeModeConstants.md) -- sizing rule for an embedded **OLE** object
- [OLEContainerTypesAllowedConstants](/tB/Packages/VBRUN/Constants/OLEContainerTypesAllowedConstants.md) -- linked, embedded, or either object types
- [OLEContainerUpdateOptionsConstants](/tB/Packages/VBRUN/Constants/OLEContainerUpdateOptionsConstants.md) -- update mode for an **OLE**-linked object
- [OLEDragConstants](/tB/Packages/VBRUN/Constants/OLEDragConstants.md) -- automatic or manual **OLE** drag
- [OLEDropConstants](/tB/Packages/VBRUN/Constants/OLEDropConstants.md) -- none/manual/automatic **OLE** drop targets
- [OLEDropEffectConstants](/tB/Packages/VBRUN/Constants/OLEDropEffectConstants.md) -- effect of an **OLE** drop (copy, move, link, scroll)
- [OldLinkModeConstants](/tB/Packages/VBRUN/Constants/OldLinkModeConstants.md) -- legacy DDE link modes (hot, cold, server)
- [PaletteModeConstants](/tB/Packages/VBRUN/Constants/PaletteModeConstants.md) -- palette source for forms and controls
- [ParentControlsType](/tB/Packages/VBRUN/Constants/ParentControlsType.md) -- whether [**ParentControls**](/tB/Packages/VBRUN/ParentControls/index.md) wraps items in their **Extender**
- [PictureTypeConstants](/tB/Packages/VBRUN/Constants/PictureTypeConstants.md) -- the type of a **StdPicture** (bitmap, icon, metafile, enhanced metafile)
- [PrinterObjectConstants](/tB/Packages/VBRUN/Constants/PrinterObjectConstants.md) -- combined enumeration of all printer setup values
- [PrinterObjectConstants_ColorMode](/tB/Packages/VBRUN/Constants/PrinterObjectConstants_ColorMode.md) -- colour or monochrome printing
- [PrinterObjectConstants_Duplex](/tB/Packages/VBRUN/Constants/PrinterObjectConstants_Duplex.md) -- one-sided or two-sided printing mode
- [PrinterObjectConstants_Orientation](/tB/Packages/VBRUN/Constants/PrinterObjectConstants_Orientation.md) -- portrait or landscape paper orientation
- [PrinterObjectConstants_PaperBin](/tB/Packages/VBRUN/Constants/PrinterObjectConstants_PaperBin.md) -- paper-source identifiers for the printer
- [PrinterObjectConstants_PaperSize](/tB/Packages/VBRUN/Constants/PrinterObjectConstants_PaperSize.md) -- paper-size identifiers for the printer
- [PrinterObjectConstants_PrintQuality](/tB/Packages/VBRUN/Constants/PrinterObjectConstants_PrintQuality.md) -- draft / low / medium / high print quality
- [QueryUnloadConstants](/tB/Packages/VBRUN/Constants/QueryUnloadConstants.md) -- reason codes reported in a form's **QueryUnload** event
- [RasterOpConstants](/tB/Packages/VBRUN/Constants/RasterOpConstants.md) -- raster-operation codes for **PaintPicture**
- [RecordsetTypeConstants](/tB/Packages/VBRUN/Constants/RecordsetTypeConstants.md) -- table / dynaset / snapshot recordset types
- [ScaleModeConstants](/tB/Packages/VBRUN/Constants/ScaleModeConstants.md) -- measurement units for a form's or container's **Scale** properties
- [ScrollBarConstants](/tB/Packages/VBRUN/Constants/ScrollBarConstants.md) -- which scrollbars a control should display (none, horizontal, vertical, both)
- [ShapeConstants](/tB/Packages/VBRUN/Constants/ShapeConstants.md) -- geometric shape selectors for the **Shape** control
- [ShiftConstants](/tB/Packages/VBRUN/Constants/ShiftConstants.md) -- bit flags for **Shift**, **Ctrl**, and **Alt** in mouse and key events
- [ShortcutConstants](/tB/Packages/VBRUN/Constants/ShortcutConstants.md) -- shortcut-key identifiers for menu items
- [StartUpPositionConstants](/tB/Packages/VBRUN/Constants/StartUpPositionConstants.md) -- initial position of a form (manual, owner, screen, default)
- [StorageTypeContants](/tB/Packages/VBRUN/Constants/StorageTypeContants.md) -- **OLE** data storage medium (`HGLOBAL`, file, `IStream`, `IStorage`, ...)
- [SystemColorConstants](/tB/Packages/VBRUN/Constants/SystemColorConstants.md) -- high values referring to system palette entries
- [VariantTypeConstants](/tB/Packages/VBRUN/Constants/VariantTypeConstants.md) -- DAO field-type tags (legacy)
- [VerticalAlignmentConstants](/tB/Packages/VBRUN/Constants/VerticalAlignmentConstants.md) -- vertical text alignment (top, middle, bottom)
- [ZOrderConstants](/tB/Packages/VBRUN/Constants/ZOrderConstants.md) -- selectors for **BringToFront** / **SendToBack**

> [!NOTE]
> The enumeration name `StorageTypeContants` (note the missing `s`) is preserved here exactly as the runtime exposes it; the misspelling is a long-standing VB6 holdover.
