I want to display a line of text with word wrapping, and I don't want the user to be able to edit it. (It's a message -- therefore it should be read-only)
I tried a Label inside a Panel, but that doesn't offer word wrapping.
I tried a textBox, but here is the problem with that solution:
I can't display the message in whatever color I want (namely, black). When I make it "off-limits" for user editing -- i.e., marking it disabled -- it automatically makes all the text a light grey color. I tried manually setting the ForeColor to black, but that didn't work.
It seems like I'd have to override part of the textBox class to achieve what I'm after -- would it be easier to just go the Label route and write a WordWrap routine (which I can do) or is there a simpler solution to achieve black text on a disabled textBox?
Thanks,
Matthew
I tried a Label inside a Panel, but that doesn't offer word wrapping.
I tried a textBox, but here is the problem with that solution:
I can't display the message in whatever color I want (namely, black). When I make it "off-limits" for user editing -- i.e., marking it disabled -- it automatically makes all the text a light grey color. I tried manually setting the ForeColor to black, but that didn't work.
It seems like I'd have to override part of the textBox class to achieve what I'm after -- would it be easier to just go the Label route and write a WordWrap routine (which I can do) or is there a simpler solution to achieve black text on a disabled textBox?
Thanks,
Matthew