Cancelling keyevents

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Tom (anonymous_at_discussions.microsoft.com)
Date: 05/05/04


Date: Wed, 5 May 2004 16:46:02 -0700

I have a textbox that should allow only numeric input. I have no problem capturing invalid keys but how do I cancel a keyevent? I want to block the input of e.g. any letter, but all of the key properties I find are read-only.

Thanks