Disabled textbox (and richtextbox) coloring

  • Thread starter Thread starter ags5406
  • Start date Start date
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.
 
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.
 
Both TextBox and RichTextBox have a property named ReadOnly (boolean type)
in Behavior Catalog.
 
Back
Top