KeyPress event cancel

A

Amirallia

Hi

It's possible to cancel the keypress event on a Textbox control ?

I have tried e.handled = false or true, but not working.
 
A

Amirallia

Sergey Bogdanov a pensé très fort :
The example [1] from that link demonstrates how to suppress KeyDown for a
TextBox (just for simplicity it only suppresses Up and Down keys, but you can
modify it for your needs). I thought that you were looking for it...

[1] http://www.sergeybogdanov.com/Samples/TextBoxKeyDownFilter.zip

--
Sergey Bogdanov
http://www.sergeybogdanov.com

Sergey Bogdanov avait écrit le 08.06.2005 :



Sorry but this link doesn't refer to my problem !

I want to disable to use a keyboard to insert text in a textbox with code
I didn't see the link...
Thanks !
 

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

Top