T
Tim Osborne
Hi
At first blush this seemed like it should be so simple. Guess again.
I want to only allow numeric characters and hexadecimal values in a TextBox,
anything else should be ignored, and maybe a beep be issued.
So I figure I need a KeyDown event and I just have to mark it as Handled,
right?
Wrong!!!!
So how do I accomplish this? I have all my controls in a UserControl BTW.
As a side note, you'd think Microsoft would have added a NumericOnly
property to their text fields by now.
How many times have I had to do numeric only validation, I've lost count.
At first blush this seemed like it should be so simple. Guess again.
I want to only allow numeric characters and hexadecimal values in a TextBox,
anything else should be ignored, and maybe a beep be issued.
So I figure I need a KeyDown event and I just have to mark it as Handled,
right?
Wrong!!!!
So how do I accomplish this? I have all my controls in a UserControl BTW.
As a side note, you'd think Microsoft would have added a NumericOnly
property to their text fields by now.
How many times have I had to do numeric only validation, I've lost count.