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

Changing form background colour

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi Everyone

I have a form that I use in read only mode and then a user has the option to click on a button and change it to edit mode. I would like the form to change colour in edit mode so the user knows they are in edit mode. Not sure how I would go about this. Any help would be great.

Thanks
tee
 
You can use the BackColor property to achieve this. Insert the following code into your OnClick event for whichever sections of the form you wish to change...

Me.Detail.BackColor = 255
Me.FormFooter.BackColor = 255
Me.FormHeader.BackColor = 255
Me.PageFooter.BackColor = 255
Me.PageHeader.BackColor = 255

Note- 255 Is Red. To find the value for another color simply put your form in design view and change the back color, after you click ok the back color property will display the color value you are looking for.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top