ColorSource
This property lets you tell a control where to find the colors it uses. It combines a lot of backward-compatibility options with two choices that are the ones you should use almost all the time. Usage | oObject.ColorSource = nColorSource nColorSource = oObject.ColorSource |
Parameter | Value | Meaning |
nColorSource | 0 | Use the colors specified in the object's various color properties (ForeColor, BackColor, etc.). |
1 | Use the color scheme used by the form containing the control. Because you can't control which color scheme the form uses, it's always scheme 1. | |
2 | Use the color scheme specified in the object's ColorScheme property. | |
3 | Use the default color scheme for this object based on the color set/color scheme system of coloring. | |
4 | Use the 3-D settings from the Windows Control Panel. This is the right choice for dialogs. | |
5 | Use the Window setting from the Windows Control Panel. This is the right choice for data-entry forms. |
Example | This.ColorSource = 5 && it's a data entry form |
See Also | BackColor, ColorScheme, Create Color Set, ForeColor, Set Color Of Scheme, Set Color Set |
View Updates
Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.