Platform SDK: Performance Monitoring |
Retrieves or sets the color of the graph pane. This is an ambient read/write property.
Public Property BackColor( ) as OLE_COLOR
BackColor is a standard property that you can set to either a palette (RGB) color or a predefined system color. By default, its value corresponds to the foreground color of the control's container.
To set BackColor to a palette (RGB) color value, either include the RGB function followed by an integer value for each of the color components (red, green, and blue), or specify the hexadecimal equivalent of the three color component values. For information on the RGB function and the values you can specify for the function, refer to the "Color Constants" and "RGB Function" sections of Visual Basic Help.
The valid range for an RGB color value is 0 to 16,777,215 (&HFFFFFF). The red, green, and blue components are each represented by a number between 0 and 255 (&HFF). If you are specifying a hexadecimal number, remember that the high byte in the range of RGB color values is 0. The lower 3 bytes, from the lowest-order byte to the highest-order, respectively determine the red, green, and blue component values.
To set BackColor to a predefined system color, use a Visual Basic color constant. For information about these constants, refer to the "Color Constants" section of Visual Basic Help. The user defines the available system colors in the Control Panel—in the Appearance sheet of the Display Properties window.
The OLE_COLOR data type for the color of the view or report area of the control. The OLE_COLOR data type holds color information for controls and their containers to use.
Graph1.BackColor=vbRed Graph1.BackColor=RGB(255,255,0) Graph1.BackColor=&HFF00FF Graph1.BackColor=vbDesktop
Windows NT/2000: Requires Windows 2000.
Header: Smonctrl.odl.
System Monitor Automation Interface Overview, System Monitor Automation Interface Properties