Results 1 to 2 of 2

Thread: VB color constants (an EASY one)

  1. #1

    Thread Starter
    Hyperactive Member zer0_flaw's Avatar
    Join Date
    Apr 2001
    Posts
    448

    VB color constants (an EASY one)

    Just curious, but what are all the VB color constants (ie: vbBlack, vbWhite, vbYellow, etc)? Those are all I know but I know there are more Thanks in advance. Later,

    -zer0 flaw

  2. #2
    Fanatic Member rudvs2's Avatar
    Join Date
    Mar 2001
    Location
    NZ
    Posts
    935
    Here they are

    Constant Value Description
    vbBlack 0x0 Black
    vbRed 0xFF Red
    vbGreen 0xFF00 Green
    vbYellow 0xFFFF Yellow
    vbBlue 0xFF0000 Blue
    vbMagenta 0xFF00FF Magenta
    vbCyan 0xFFFF00 Cyan
    vbWhite 0xFFFFFF White

    Constant Value Description
    vbScrollBars 0x80000000 Scroll bar color
    vbDesktop 0x80000001 Desktop color
    vbActiveTitleBar 0x80000002 Color of the title bar for the active window
    vbInactiveTitleBar 0x80000003 Color of the title bar for the inactive window
    vbMenuBar 0x80000004 Menu background color
    vbWindowBackground 0x80000005 Window background color
    vbWindowFrame 0x80000006 Window frame color
    vbMenuText 0x80000007 Color of text on menus
    vbWindowText 0x80000008 Color of text in windows
    vbTitleBarText 0x80000009 Color of text in caption, size box, and scroll arrow
    vbActiveBorder 0x8000000A Border color of active window
    vbInactiveBorder 0x8000000B Border color of inactive window
    vbApplicationWorkspace 0x8000000C Background color of multiple-document interface (MDI) applications
    vbHighlight 0x8000000D Background color of items selected in a control
    vbHighlightText 0x8000000E Text color of items selected in a control
    vbButtonFace 0x8000000F Color of shading on the face of command buttons
    vbButtonShadow 0x80000010 Color of shading on the edge of command buttons
    vbGrayText 0x80000011 Grayed (disabled) text
    vbButtonText 0x80000012 Text color on push buttons
    vbInactiveCaptionText 0x80000013 Color of text in an inactive caption
    vb3DHighlight 0x80000014 Highlight color for 3-D display elements
    vb3DDKShadow 0x80000015 Darkest shadow color for 3-D display elements
    vb3DLight 0x80000016 Second lightest 3-D color after vb3DHighlight
    vbInfoText 0x80000017 Color of text in ToolTips
    vbInfoBackground 0x80000018 Background color of ToolTips

    Hope that helps you out

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width