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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top