When I type a key inside a NumericUpDown, it is shown even if I cancel it, no matter which Key event I put it into.
I tried cancelling the key in all those events: events
It does cancel but I always see it for a second before it changes.
When I type a key inside a NumericUpDown, it is shown even if I cancel it, no matter which Key event I put it into.
I tried cancelling the key in all those events: events
It does cancel but I always see it for a second before it changes.
Copyright © 2021 Jogjafile Inc.
I could achieve this requirement by simply clearing the
Textproperty of theNumericUpDowninstead of suppressing the third key:Maybe you will have to check for additional conditions like leading zeroes, depending on the exact requirement.
Oh sorry, You want VB. Please, wait a moment...
... here is a VB version:
It also seems like
e.SuppressKeyPress = Trueis working inKeyDown.