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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I change default backcolor for all form

Status
Not open for further replies.

paispatin

Technical User
Oct 21, 2003
62
A1
Dear all,

We know if change a form backcolor, we could get it back to default using Reset to Default. But anyone khow, Can I change the default color to a color that I want?

Let say if I already create a program with 10 form. And then I need to change all form backcolor to white color, so I think I could do it with changing default backcolor to white color or any other way to do that?

Thank you in advance
 
paispatin,

The best way to do this is to base all your forms on a common form class rather than on the built-in base form. That way, you would only need to change the property in question at the class level. You would still be able to give individual forms their own backcolor if you wanted to, but executing "Reset to Default" would give you the colour specified in the class, not the built-in one.

If you have already created your forms, and you have not used a common form class, it's not too late. Create the class now, and use the Class Browser to "redefine" each form to be based on the common class.

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top