In VB 6.0, all you needed to do what changed the locked property to true
(not the enabled property, which caused the text to gray out).
In .NET, you just change the ReadOnly property to true.
"Rich" <(E-Mail Removed)> wrote in message
news:264801c3fc85$c7fc8190$(E-Mail Removed)...
> Hello,
>
> So I would like to disable a textbox on a vb.net form
> without the text getting grayed out. In vb6 I could place
> a textbox control on a frame control and disable the frame
> leaving the textbox enabled and text/background were
> intact but mouse cursor remained an arraw (as opposed to
> an I for editable). I tried a Panel control on my .net
> form since I could I guess there is no longer a frame
> control (also tried a groupbox control). I disable these
> container controls, but in the panel the textbox got
> grayed out. With groupbox, the textbox was still
> editable. Any suggestions appreciated how to disable
> textbox without graying it out.
>
> Thanks,
> Rich
|