Hello All - question on cosmetic appeal here:
I'm witnessing strange behavior on the setting of a textbox's BackColor/Style when Enabled = False.
On my Form-Details section background, I've specified a different color than the Windows default gray. Some TextBoxes are being used (rather obtusely, perhaps) as Labels that get conditionally 'grayed-out' based on the values in other controls. (I use TextBoxes because Labels don't have an 'Enabled' property and these pseudo-Labels are unable to be logically associated to 1 particular control, otherwise I'd just cut and paste a Label to that particular control to handle the 'enabling/disabling' bit.)
The BackStyle on these pseudo-Labels are set to Transparent by design. They're also set to Enabled: No and Locked: No by design.
The result is that the Windows default gray is displayed as the BackColor instead of the color I specified for the Form-Details background (the latter color being the expected color since I've set BackStyle to Transparent on the pseudo-Labels).
Am I overlooking something in terms of property settings to get these 'disabled' TextBoxes to remain Transparent (rather than displaying Windows gray BackColor) while in the disabled state?
Any advice or suggestions greatly appreciated.
Regards,
John
I'm witnessing strange behavior on the setting of a textbox's BackColor/Style when Enabled = False.
On my Form-Details section background, I've specified a different color than the Windows default gray. Some TextBoxes are being used (rather obtusely, perhaps) as Labels that get conditionally 'grayed-out' based on the values in other controls. (I use TextBoxes because Labels don't have an 'Enabled' property and these pseudo-Labels are unable to be logically associated to 1 particular control, otherwise I'd just cut and paste a Label to that particular control to handle the 'enabling/disabling' bit.)
The BackStyle on these pseudo-Labels are set to Transparent by design. They're also set to Enabled: No and Locked: No by design.
The result is that the Windows default gray is displayed as the BackColor instead of the color I specified for the Form-Details background (the latter color being the expected color since I've set BackStyle to Transparent on the pseudo-Labels).
Am I overlooking something in terms of property settings to get these 'disabled' TextBoxes to remain Transparent (rather than displaying Windows gray BackColor) while in the disabled state?
Any advice or suggestions greatly appreciated.
Regards,
John