emi_sastra
asked on
Label Fore Color Change To Black When GroupBox Is Disabled.
Hi,
I have a groupbox with several control inside.
When I disable the groupbox, all the label fore color is set to black.
I don't want to change the label fore color.
This is also happened to checkbox.
How to solve this problem?
Thank you.
I have a groupbox with several control inside.
When I disable the groupbox, all the label fore color is set to black.
I don't want to change the label fore color.
This is also happened to checkbox.
How to solve this problem?
Thank you.
Why don't you loop in all the controls inside the groupbox and disable only the one you like (like checkbox, textbox) ?
ASKER
HI Roger,
I think I should disabled all texbox alone inside the groupbox, so it does not change the labels inside the groupbox.
How to do it?
Thank you.
I think I should disabled all texbox alone inside the groupbox, so it does not change the labels inside the groupbox.
How to do it?
Thank you.
ASKER
HI ee_rlee,
Your link is too complicated for me, and for this case I don't need to make custom controls.
Thank you.
Your link is too complicated for me, and for this case I don't need to make custom controls.
Thank you.
ASKER
Hi jpaulino,
I agree as I just post.
Thank you.
I agree as I just post.
Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi jpaulino,
Thank you, that is what I need now.
Thank you, that is what I need now.
If you don't want them to follow that behaviour, one idea would be to put them OVER rather than IN the GroupBox. So far as Labels are concerned, that should cause no problems: because the user can do little to them anyway. But do you still want the user to be able to change the state of a CheckBox if it is - even only apparently - part of a disabled GroupBox?
Roger