>I have an application that has multiple forms in it. These forms all have subclasses on them, which are my custom textboxes, edit boxes, combo boxes, etc. What I am trying to do is to have some standard colours for the subclasses, but also have an option in the application where the user can tell the app to use windows colours.
>
>I know there is a property called COLORSOURCE, which can be set to 4 to use the windows colours. How do I enable my application to use windows colours or my preset colours?
>
>Thanks
>
>Daryl
Create an options screen that allows the user to switch between the two. Save the value in the registry or a dbf. In the Init of each form, check this value and set the colorsource.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer