Odd Appearance of Disabled Labels

The professor

Registered User.
Local time
Today, 22:03
Joined
Dec 5, 2012
Messages
14
Hi,

I've created a form and placed various fields with their associated labels on it. Under certain conditions VBA code will disable some fields along with their labels, which is fine, and all is well, except for one thing - the appearance of the labels. Some labels take on a flat, mid-grey colour, whilst other labels adopt an 'etched' appearance. The mixture of the two very different appearances is off-putting to say the least and I can't seem to figure out what is wrong and why we have some 'etched' and some 'flat grey' labels - it's driving me to distraction. Can anyone help with this?

Thanks in advance.
 
Hi Pat,

Thank you for your reply and appreciate your help.

All the controls (txtboxes & their labels) have absolutely identical formatting and I have indeed used the format Painter to make sure I've missed nothing. By default, when the form is loaded, all controls are both enabled and unlocked.

However, when a certain the condition is met, VBA code (Me.txtCompany.Enabled = False) will disable some controls, (and the exact same code is applied to each control in question) and indeed the control is disabled, as it should be. The very odd problem I'm having is that the appearance of some disabled labels, is very different to the appearance of other disabled labels. Some labels take on an 'etched' appearance, whilst others have an unattractive 'flat gray' appearance - why? (the text boxes are not a problem, only their associated labels). For the life in me, I cannot fathom out why this is happening, as the controls are identical and all are being treated by the code in the same way. I'm becoming very frustrated by this as I'm beginning to believe its something outside of my control - if you'll forgive the pun!
 
Thanks for those who offered help with this problem and I'm pleased to say that the issue has now been fixed.
 

Users who are viewing this thread

Back
Top Bottom