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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top