Textbox background color in enable=false state turn gray

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi;
I've put some textbox,combobox ...controls on a user control and when i
change
the enable state for the user control to false (just to disable text change
by unauthorize user) the background of all childs controls turns to gary ;

it hard to read the the text.
is there a way too change the background color to white and still lock the
control.

Thanks everyone;
nissiml
 
nissiml said:
I've put some textbox,combobox ...controls on a user control and when i
change
the enable state for the user control to false (just to disable text
change
by unauthorize user) the background of all childs controls turns to gary ;

it hard to read the the text.
is there a way too change the background color to white and still lock the
control.

Disable controls individually. For textboxes, set their 'ReadOnly' property
to 'True' and reset the background color instead of disabling them.
 
Back
Top