Re: How to prevent SELECTION by user, in TEXTBOX ?
- From: "tony" <daylor@xxxxxxxxxxxxxxxx>
- Date: Tue, 1 Jul 2008 11:41:03 +0300
Hi,
The problem is I created custom textbox ,
I want to prevent the user to change the text.
For some reason the Text.ReadOnly did not prevent the user to write text in
the TextBox,
so i create custom read only that will return immedialy from Key events.
till here everything was O.K
but then, i notice that if i select the text and then write somthing, the
text is changed, although i had the custom readonly=true.
Thanking in advance,
"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:%23Rel6hs2IHA.548@xxxxxxxxxxxxxxxxxxxxxxx
Why must it be enabled, but not selectable? Tell us *what* you are trying
to do, *not* how you've decided to do it. We can give you a good answer
that way.
Paul T.
"tony" <daylor@xxxxxxxxxxxxxxxx> wrote in message
news:g492me$ejn$1@xxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
I want to prevent the user, from selecting text (blue selection) in
TextBox , How can i do this ?
(the textbox must be enabled=true)
Thanking in advance.
.
- Follow-Ups:
- How to prevent SELECTION by user, in TEXTBOX ?
- From: PrTaS
- Re: How to prevent SELECTION by user, in TEXTBOX ?
- From: Paul G. Tobey [eMVP]
- How to prevent SELECTION by user, in TEXTBOX ?
- Prev by Date: Re: Can I run a CF.NET 2 application built for WM5 on WM6?
- Next by Date: Re: Need a good book on CE .Net Compact Framework
- Previous by thread: Can I run a CF.NET 2 application built for WM5 on WM6?
- Next by thread: Re: How to prevent SELECTION by user, in TEXTBOX ?
- Index(es):
Relevant Pages
|