-
Locking a text box
Hi,
I like this new vb .net but something are really hard to figure out and they should not be.
I need to make my text box readonly/locked without them going gray. I want to push figures into the text boxs from code but not let the user access the controls. How do I do this???
Thanks for your help,
Chris
-
I think you can override the KeyPress and/or KeyDown methods for the textbox and set e.Handled=True. Something like that?
-
Hi.
You can still use the ReadOnly property.
True, the textbox is greyed out when you set this property, but you can change the background and foreground colors afterwards.