Disabled textbox (and richtextbox) coloring

A

ags5406

I've some textboxes and richtextboxes. I want to keep the user from
being able to modify the text that is displayed. So I've set them to
disabled.

But I don't want them to be grayed out. So I've set the forecolor to
black and the backcolor to white. The window is white but the text
shows up as gray. How can I get the text to show up as black (same as
normal enabled textbox).

Thx.
 
A

ags5406

Maybe setting their readonly property to true would be a better choice.

Wow I went up and down that list of properties over and over and
somehow my eyes never say "ReadOnly"

Thanks.
 
E

Eternal Snow

Both TextBox and RichTextBox have a property named ReadOnly (boolean type)
in Behavior Catalog.
 

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