You can set the background colour of a form by setting the BackColor property but that's not much good for what you want because you can't change it dynamically depending on which database you are in.
What we have done previously is shown a prominent banner on key forms and shown these dynamically using the VISIBLE property. E.g. We create 2 banners one with a blue background and one with red then show the blue one in the LIVE database and the RED one in UAT. This does need to be done on each form, so usually we just do on some of the master card forms and maybe some key journal / worksheet forms.
Background of form is not dynamically possible, but my suggestion of using banners IS dynamically possible.
1) Create a textbox, set background colour to BLUE
2) Create another textbox, set background colour to RED
3) In OnFormOpen set the VISIBLE property for the above 2 text boxes - show the BLUE one in LIVE company and RED one in UAT company. You can check COMPANYNAME (if the 2 have different company names) do decide which to show
Answers
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
What we have done previously is shown a prominent banner on key forms and shown these dynamically using the VISIBLE property. E.g. We create 2 banners one with a blue background and one with red then show the blue one in the LIVE database and the RED one in UAT. This does need to be done on each form, so usually we just do on some of the master card forms and maybe some key journal / worksheet forms.
Dynamically not possible?
So as per your idea, we can create two sets of objects, one is UAT and another one is for LIVE.
1) Create a textbox, set background colour to BLUE
2) Create another textbox, set background colour to RED
3) In OnFormOpen set the VISIBLE property for the above 2 text boxes - show the BLUE one in LIVE company and RED one in UAT company. You can check COMPANYNAME (if the 2 have different company names) do decide which to show