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

Default Background Colour for Multiple Forms 1

Status
Not open for further replies.

DanAuber

IS-IT--Management
Apr 28, 2000
255
FR
I have a database with about 50 forms on it. Does anyone know an easy way to get these forms to read a single variable as they load which will determine their background colours (for Header and Detail Sections).<br>I want to be able to just change this variable once, and all the forms will then change their colour on the next load.<br>I assume I do something with the On_Load property and the BackColor variable. But I'm not sure how to create a GLOBAL variable that all forms read, and I don't know what VB I'd need to put in each form to read it.<br><br>Any help gratefully received.<br><br>Dan
 
In a global module type a line such as:<br>Global Const FORMCOLOR=255<br><br>then for the open event of each form do something like this:<br>Detail.BackColor=FORMCOLOR<br><br><br>Then you only need to change the number for the FORMCOLOR<br>in the Global Module.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top