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