handled = true .. got it
If you only test for Char.IsDigit only numbers will be accepted, but then
backspace would not work, even though delete does. This is solved by also
testing for Char.IsControl.
> handled = true .. got it
>
>> How do I ignore a keypress...there is no .Supress option and can't
>> assign
>> null

Signature
Happy Coding!
Morten Wennevik [C# MVP]
Claes Bergefall - 30 Aug 2006 16:06 GMT
If you set the ES_NUMBER style (as shown in the code I posted) you don't
need to worry about IsDigit, IsControl or KeyPress
/claes
If you only test for Char.IsDigit only numbers will be accepted, but then
backspace would not work, even though delete does. This is solved by also
testing for Char.IsControl.
> handled = true .. got it
>
[quoted text clipped - 3 lines]
>> assign
>> null

Signature
Happy Coding!
Morten Wennevik [C# MVP]