restricting user to write in the text box

  • Thread starter Thread starter Vinki
  • Start date Start date
V

Vinki

Hello Everyone,

I need to restrict user not to write anythign in the text box. User can
only copy and paste in the text box. is it possible to do taht? if it is How?
 
Vinki said:
Hello Everyone,

I need to restrict user not to write anythign in the text box. User can
only copy and paste in the text box. is it possible to do taht? if it is
How?


I can't say I like the design, but you will want to handle the
TextBox.KeyPress event. Set the KeyPressEventArgs property "Handled" to
true.
 
Back
Top