Platform SDK: Performance Monitoring |
Retrieves or sets the color of the counter value displayed in the System Monitor. This is a read/write property.
Public Property Color( value as OLE_COLOR ) as OLE_COLOR
You can define a custom color in the Visual Basic Editor using the Color combo box of the Properties dialog box. The user cannot modify the custom color using the Properties dialog box in the System Monitor.
The color you specify with this method is applied to the graph pane and legend for line graph and histogram views.
The current color setting for the counter value. The OLE_COLOR data type holds color information for controls and their containers to use.
Dim ctrItem as CounterItem ctrItem.Color = vbRed ctrItem.Color = RGB(255, 255, 0) ctrItem.Color = &HFF00FF Dim ColorVal as Variant ColorVal = ctrItem.Color
Windows NT/2000: Requires Windows 2000.
Header: Smonctrl.odl.
System Monitor Automation Interface Overview, System Monitor Automation Interface Properties