BorderColor Property

Specifies the border color of an object. Available at design time and run time.

Object.BorderColor[ = nColor]

Return Value

  • nColor
    Specifies the border color value.

    The following table lists typical color values:

    Color

    RGB values

    nColor value

    White

    255, 255, 255

    16777215

    Black

    0, 0, 0

    0

    Gray

    192, 192, 192

    12632256

    Dark gray

    128, 128, 128

    8421504

    Red

    255, 0, 0

    255

    Dark red

    128, 0, 0

    128

    Yellow

    255, 255, 0

    65535

    Dark yellow

    128, 128, 0

    32896

    Green

    0, 255, 0

    65280

    Dark green

    0, 128, 0

    32768

    Cyan

    0, 255, 255

    16776960

    Dark cyan

    0, 128, 128

    8421376

    Blue

    0, 0, 255

    16711680

    Dark blue

    0, 0, 128

    8388608

    Magenta

    255, 0 ,255

    16711935

    Dark magenta

    128, 0, 128

    8388736

Remarks

Applies To: ComboBox Control | CommandGroup Control | Container Object | Control Object (Visual FoxPro) | EditBox Control | Image Control (Visual FoxPro) | Line Control | ListBox Control | OptionGroup Control | PageFrame Control | Shape Control | TextBox Control (Visual FoxPro)

BorderColor applies only to a text box or edit box when the SpecialEffect property is set to 1 - Plain.

Use the RGB( ) function to convert the three component colors into one composite nColor.

See Also

Reference

BackColor, ForeColor Properties

GETCOLOR( ) Function

RGB( ) Function

SpecialEffect Property

Other Resources

Properties (Visual FoxPro)

Language Reference (Visual FoxPro)