📄 stdconst.bas
字号:
Global Const vbKeyNumpad0 = 96 ' 0 key
Global Const vbKeyNumpad1 = 97 ' 1 key
Global Const vbKeyNumpad2 = 98 ' 2 key
Global Const vbKeyNumpad3 = 99 ' 3 key
Global Const vbKeyNumpad4 = 100 ' 4 key
Global Const vbKeyNumpad5 = 101 ' 5 key
Global Const vbKeyNumpad6 = 102 ' 6 key
Global Const vbKeyNumpad7 = 103 ' 7 key
Global Const vbKeyNumpad8 = 104 ' 8 key
Global Const vbKeyNumpad9 = 105 ' 9 key
Global Const vbKeyMultiply = 106 ' MULTIPLICATION SIGN (*) key
Global Const vbKeyAdd = 107 ' PLUS SIGN (+) key
Global Const vbKeySeparator = 108 ' ENTER (keypad) key
Global Const vbKeySubtract = 109 ' MINUS SIGN (-) key
Global Const vbKeyDecimal = 110 ' DECIMAL POINT(.) key
Global Const vbKeyDivide = 111 ' DIVISION SIGN (/) key
' Function Keys
Global Const vbKeyF1 = 112 ' F1 key
Global Const vbKeyF2 = 113 ' F2 key
Global Const vbKeyF3 = 114 ' F3 key
Global Const vbKeyF4 = 115 ' F4 key
Global Const vbKeyF5 = 116 ' F5 key
Global Const vbKeyF6 = 117 ' F6 key
Global Const vbKeyF7 = 118 ' F7 key
Global Const vbKeyF8 = 119 ' F8 key
Global Const vbKeyF9 = 120 ' F9 key
Global Const vbKeyF10 = 121 ' F10 key
Global Const vbKeyF11 = 122 ' F11 key
Global Const vbKeyF12 = 123 ' F12 key
Global Const vbKeyF13 = 124 ' F13 key
Global Const vbKeyF14 = 125 ' F14 key
Global Const vbKeyF15 = 126 ' F15 key
Global Const vbKeyF16 = 127 ' F16 key
'1 Miscellaneous Constants
' AsyncRead Method
Global Const vbAsyncTypePicture = 0 ' Data is provided in a Picture object
Global Const vbAsyncTypeFile = 1 ' Data is provided in a file provide by Visual Basic
Global Const vbAsyncTypeByteArray = 2 ' Data is provided in a byte array that contains the retrieved data
' Application Start Mode
Global Const vbSModeStandalone = 0 ' Stand-alone application
Global Const vbSModeAutomation = 1 ' Automated ActiveX component
' Buttons (Applies to CommandButton, CheckBox, and OptionButton controls)
Global Const vbButtonStandard = 0 ' Buttons have standard Windows appearance
Global Const vbButtonGraphical = 1 ' Buttons have graphical appearance (that is, they contain pictures, text, and/or a non-standard BackColor)
' LoadResPicture Method
Global Const vbResBitmap = 0 ' Bitmap resource
Global Const vbResIcon = 1 ' Icon resource
Global Const vbResCursor = 2 ' Cursor resource
' LogEvent Method
Global Const vbLogEventTypeError = 1 ' Log an Error event
Global Const vbLogEventTypeWarning = 2 ' Log a Warning event
Global Const vbLogEventTypeInformation = 4 ' Log an Information event
' Mouse Button Parameter Masks
Global Const vbLeftButton = 1 ' Left mouse button
Global Const vbRightButton = 2 ' Right mouse button
Global Const vbMiddleButton = 4 ' Middle mouse button
' QueryUnload Method
Global Const vbAppWindows = 2 ' Current Windows session ending
Global Const vbFormMDIForm = 4 ' MDI child form is closing because the MDI form is closing
Global Const vbFormCode = 1 ' Unload method invoked from code
Global Const vbFormControlMenu = 0 ' User has chosen Close command from the Control-menu box on a form
Global Const vbAppTaskManager = 3 ' Windows Task Manager is closing the application
' Shift Parameter Masks
Global Const vbShiftMask = 1 ' SHIFT key bit mask
Global Const vbCtrlMask = 2 ' CTRL key bit mask
Global Const vbAltMask = 4 ' ALT key bit mask
' ZOrder Method
Global Const vbBringToFront = 0 ' Bring to front
Global Const vbSendToBack = 1 ' Send to back
' Mouse Pointer Constants
Global Const vbDefault = 0 ' Default
Global Const vbArrow = 1 ' Arrow
Global Const vbCrosshair = 2 ' Cross
Global Const vbIbeam = 3 ' I beam
Global Const vbIconPointer = 4 ' Icon
Global Const vbSizePointer = 5 ' Size
Global Const vbSizeNESW = 6 ' Size NE, SW
Global Const vbSizeNS = 7 ' Size N, S
Global Const vbSizeNWSE = 8 ' Size NW, SE
Global Const vbSizeWE = 9 ' Size W, E
Global Const vbUpArrow = 10 ' Up arrow
Global Const vbHourglass = 11 ' Hourglass
Global Const vbNoDrop = 12 ' No drop
Global Const vbArrowHourglass = 13 ' Arrow and hourglass
Global Const vbArrowQuestion = 14 ' Arrow and question mark
Global Const vbSizeAll = 15 ' Size all
Global Const vbCustom = 99 ' Custom icon specified by the MouseIcon property
' RasterOp Constants
Global Const vbDstInvert = &H00550009 ' Inverts the destination bitmap
Global Const vbMergeCopy = &H00C000CA ' Combines the pattern and the source bitmap
Global Const vbMergePaint = &H00BB0226 ' Combines the inverted source bitmap with the destination bitmap by using Or
Global Const vbNotSrcCopy = &H00330008 ' Copies the inverted source bitmap to the destination
Global Const vbNotSrcErase = &H001100A6 ' Inverts the result of combining the destination and source bitmaps by using Or
Global Const vbPatCopy = &H00F00021L ' Copies the pattern to the destination bitmap
Global Const vbPatInvert = &H005A0049L ' Combines the destination bitmap with the pattern by using Xor
Global Const vbPatPaint = &H00FB0A09L ' Combines the inverted source bitmap with the pattern by using Or. Combines the result of this operation with the destination bitmap by using Or
Global Const vbSrcAnd = &H008800C6 ' Combines pixels of the destination and source bitmaps by using And
Global Const vbSrcCopy = &H00CC0020 ' Copies the source bitmap to the destination bitmap
Global Const vbSrcErase = &H00440328 ' Inverts the destination bitmap and combines the result with the source bitmap by using And
Global Const vbSrcInvert = &H00660046 ' Combines pixels of the destination and source bitmaps by using Xor
Global Const vbSrcPaint = &H00EE0086 ' Combines pixels of the destination and source bitmaps by using Or
' SpecialFolder Constants
Global Const WindowsFolder = 0 ' The Windows folder contains files installed by the Windows operating system.
Global Const SystemFolder = 1 ' The System folder contains libraries, fonts, and device drivers.
Global Const TemporaryFolder = 2 ' The Temp folder is used to store temporary files. Its path is found in the TMP environment variable.
' StateManagement Property Constants
Global Const WcNoState = 1 ' The WebClass object will be instantiated and destroyed for every HTTP request that is processed. Any required state information must be stored externally, such as in a database, within the Session object, within the URL itself using the URLData property, or in cookies using the Response.Cookies collection.
Global Const wcRetainInstance = 2 ' The WebClass object is instantiated when the first HTTP request is received and not destroyed until either the ReleaseInstance method is called or the session times out. State can be safely kept within properties of the WebClass object; however, this will increase the size and decrease the scalability of your application.
' Tristate Constants
Global Const vbTrue = 1 ' True
Global Const vbFalse = 0 ' False
Global Const vbUseDefault = 2 ' Use default setting
' Variant Type Constants
Global Const vbVEmpty = 0 ' Empty (uninitialized)
Global Const vbVNull = 1 ' Null (no valid data)
Global Const vbVInteger = 2 ' Integer data type
Global Const vbVLong = 3 ' Long integer data type
Global Const vbVSingle = 4 ' Single-precision floating-point data type
Global Const vbVDouble = 5 ' Double-precision floating-point data type
Global Const vbVCurrency = 6 ' Currency (scaled integer) data type
Global Const vbVDate = 7 ' Date data type
Global Const vbVString = 8 ' String data type
' Menu Accelerator Constants
Global Const vbMenuAccelCtrlA = 1 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlB = 2 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlC = 3 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlD = 4 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlE = 5 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlF = 6 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlG = 7 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlH = 8 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlI = 9 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlJ = 10 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlK = 11 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlL = 12 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlM = 13 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlN = 14 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlO = 15 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlP = 16 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlQ = 17 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlR = 18 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlS = 19 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlT = 20 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlU = 21 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlV = 22 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlW = 23 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlX = 24 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlY = 25 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlZ = 26 ' User-defined shortcut keystrokes
Global Const vbMenuAccelF1 = 27 ' User-defined shortcut keystrokes
Global Const vbMenuAccelF2 = 28 ' User-defined shortcut keystrokes
Global Const vbMenuAccelF3 = 29 ' User-defined shortcut keystrokes
Global Const vbMenuAccelF4 = 30 ' User-defined shortcut keystrokes
Global Const vbMenuAccelF5 = 31 ' User-defined shortcut keystrokes
Global Const vbMenuAccelF6 = 32 ' User-defined shortcut keystrokes
Global Const vbMenuAccelF7 = 33 ' User-defined shortcut keystrokes
Global Const vbMenuAccelF8 = 34 ' User-defined shortcut keystrokes
Global Const vbMenuAccelF9 = 35 ' User-defined shortcut keystrokes
Global Const vbMenuAccelF11 = 36 ' User-defined shortcut keystrokes
Global Const vbMenuAccelF12 = 37 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlF1 = 38 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlF2 = 39 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlF3 = 40 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlF4 = 41 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlF5 = 42 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlF6 = 43 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlF7 = 44 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlF8 = 45 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlF9 = 46 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlF11 = 47 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlF12 = 48 ' User-defined shortcut keystrokes
Global Const vbMenuAccelShiftF1 = 49 ' User-defined shortcut keystrokes
Global Const vbMenuAccelShiftF2 = 50 ' User-defined shortcut keystrokes
Global Const vbMenuAccelShiftF3 = 51 ' User-defined shortcut keystrokes
Global Const vbMenuAccelShiftF4 = 52 ' User-defined shortcut keystrokes
Global Const vbMenuAccelShiftF5 = 53 ' User-defined shortcut keystrokes
Global Const vbMenuAccelShiftF6 = 54 ' User-defined shortcut keystrokes
Global Const vbMenuAccelShiftF7 = 55 ' User-defined shortcut keystrokes
Global Const vbMenuAccelShiftF8 = 56 ' User-defined shortcut keystrokes
Global Const vbMenuAccelShiftF9 = 57 ' User-defined shortcut keystrokes
Global Const vbMenuAccelShiftF11 = 58 ' User-defined shortcut keystrokes
Global Const vbMenuAccelShiftF12 = 59 ' User-defined shortcut keystrokes
Global Const vbMenuAccelShiftCtrlF1 = 60 ' User-defined shortcut keystrokes
Global Const vbMenuAccelShiftCtrlF2 = 61 ' User-defined shortcut keystrokes
Global Const vbMenuAccelShiftCtrlF3 = 62 ' User-defined shortcut keystrokes
Global Const vbMenuAccelShiftCtrlF4 = 63 ' User-defined shortcut keystrokes
Global Const vbMenuAccelShiftCtrlF5 = 64 ' User-defined shortcut keystrokes
Global Const vbMenuAccelShiftCtrlF6 = 65 ' User-defined shortcut keystrokes
Global Const vbMenuAccelShiftCtrlF7 = 66 ' User-defined shortcut keystrokes
Global Const vbMenuAccelShiftCtrlF8 = 67 ' User-defined shortcut keystrokes
Global Const vbMenuAccelShiftCtrlF9 = 68 ' User-defined shortcut keystrokes
Global Const vbMenuAccelShiftCtrlF11 = 69 ' User-defined shortcut keystrokes
Global Const vbMenuAccelShiftCtrlF12 = 70 ' User-defined shortcut keystrokes
Global Const vbMenuAccelCtrlIns = 71 ' User-defined shortcut keystrokes
Global Const vbMenuAccelShiftIns = 72 ' User-defined shortcut keystrokes
Global Const vbMenuAccelDel = 73 ' User-defined shortcut keystrokes
Global Const vbMenuAccelShiftDel = 74 ' User-defined shortcut keystrokes
Global Const vbMenuAccelAltBksp = 75 ' User-defined shortcut keystrokes
'1 Control Constants
' ComboBox Control
Global Const vbComboDropdown = 0 ' Dropdown Combo
Global Const vbComboSimple = 1 ' Simple Combo
Global Const vbComboDropdownList = 2 ' Dropdown List
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -