Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I set system colours per VB Application

Status
Not open for further replies.

KirkJewell

Programmer
Oct 6, 2000
54
GB
I want to set the system colours for different VB applications (linked to an Access.mdb).

I have been told that I could set them and reset them using API calls has anyone got code to do this they wish to share?(or advice).

(This is the only way I can be sure that a custom colour scheme won't clash with the users systems settings- any help would be gratefully appreciated.
 
Why change the system colors? Why not use the color palette? When you're in Visual Basic, click on the object you want to set the color for. Go over to the Properties Window and select BackColor, ForeColor, or whatever you're changing. Click the drop-down box and select the Palette tab instead of System.
 
Thanks for the tip but you can't change the application window or child window colours (i.e. the button faces and windows surrounds) You always run the risk of a general windows system colour clash with custom colours on a form.

I have also found out how to change the application colours when the application window is active and then change it back with not active (using the Windows API.

Thanks Anyway
Kirk.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top