TextBox Background Color

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
 
H

Herfried K. Wagner [MVP]

* "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.
 
G

Gary Milton

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
 
S

Stan Sainte-Rose

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
 

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

Top