QBColor Function


QBColor Function

Class

Microsoft.VisualBasic.Information

Syntax

     Dim result As Integer = QBColor(color) 


color (required; Integer)

A whole number between 0 and 15

Description

The QBColor function returns a value representing the RGB ("red, green, blue") system color code.

Usage at a Glance

  • The source color value is one of the following values:

    Value

    Description

    0

    Black

    1

    Blue

    2

    Green

    3

    Cyan

    4

    Red

    5

    Magenta

    6

    Yellow

    7

    White

    8

    Gray

    9

    Light Blue

    10

    Light Green

    11

    Light Cyan

    12

    Light Red

    13

    Light Magenta

    14

    Light Yellow

    15

    Bright White


  • The RGB function allows much more flexibility than the QBColor function, which is a remnant of the older QBasic programming language.

  • Visual Basic now contains a wide range of intrinsic color constants that can be used to assign colors directly to the color properties of objects. These colors are members of the System.Drawing.Color structure.

See Also

RGB Function




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net