TextBox Background Color

  • Thread starter Thread starter Stan Sainte-Rose
  • Start date Start date
S

Stan Sainte-Rose

Hi,
How can I set the background color of a Read-Only Textbox ?
When I set to read only property on, it comes with a gray color. I would
like to change this color.
Any Idea ?

Stan
 
* "Stan Sainte-Rose said:
How can I set the background color of a Read-Only Textbox ?
When I set to read only property on, it comes with a gray color. I would
like to change this color.

Simply change the control's 'BackColor' property.
 
Stan,

Do as Cor and Herfried suggested. There is a little 'bugette' in the IDE
whereby if you put a new textbox on a form and set it to readonly, it's
backcolor goes gray but the backcolor property still shows it as being
'Window' (white). This doesn't mean that you can't change the backcolor to
something else.

Gary
 
Yep..
I works.
Thanks
Stan

Gary Milton said:
Stan,

Do as Cor and Herfried suggested. There is a little 'bugette' in the IDE
whereby if you put a new textbox on a form and set it to readonly, it's
backcolor goes gray but the backcolor property still shows it as being
'Window' (white). This doesn't mean that you can't change the backcolor to
something else.

Gary
 
Back
Top