E
Elif
I have a texbox which can be in one of three states in my application.
1. enabled,
2. disabled,
3. read only, with a different color background.
When switching between these states, going from #3 to #1, I set the
backcolor in my program to
System.Drawing.SystemColors.Window which seems to be the default back color
for windows forms controls. However, once I set the backcolor manually,
when I disable the textbox its background doesn't change to gray the way it
normally does. It just stays with the backcolor I assigned to it, which is
white. Is there a way of assigning the default back color to a control, or
undoing the backcolor assignment?
Thanks for any help.
Elif
1. enabled,
2. disabled,
3. read only, with a different color background.
When switching between these states, going from #3 to #1, I set the
backcolor in my program to
System.Drawing.SystemColors.Window which seems to be the default back color
for windows forms controls. However, once I set the backcolor manually,
when I disable the textbox its background doesn't change to gray the way it
normally does. It just stays with the backcolor I assigned to it, which is
white. Is there a way of assigning the default back color to a control, or
undoing the backcolor assignment?
Thanks for any help.
Elif