View Single Post
Old 06-30-2009   #2 (permalink)
Family Tree Mike


 
 

Re: restricting user to write in the text box

"Vinki" <Vinki@xxxxxx> wrote in message
news:580AF5C2-23DC-455F-BD80-7CEEDABB6EA6@xxxxxx
Quote:

> 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.

--
Mike

My System SpecsSystem Spec