dpatfield66
Well-known member
- Joined
- Apr 6, 2006
- Messages
- 136
- Programming Experience
- 5-10
I have an issue where if a user enters into a numericupdown and hits "delete" on the keyboard, the value disappears. But the value of the control is still what it was before the user hit "delete".
I like that a user can hit "delete" and wipe out a value on a numericupdown, but how can I get the value to be NULL if this happens? And if I can't get it to be NULL, then how can I get the numericupdown to at least display 0, or the minimum value?
Is there a constant that recognizes that the key pressed, or key down was DELETE? If I can get that established, I can set the value of the control to 0, or minvalue. (Because the value doesn't change, but just disappears when delete is pressed, I can't say "If myNumericUpDown.Value = NULL)
I like that a user can hit "delete" and wipe out a value on a numericupdown, but how can I get the value to be NULL if this happens? And if I can't get it to be NULL, then how can I get the numericupdown to at least display 0, or the minimum value?
Is there a constant that recognizes that the key pressed, or key down was DELETE? If I can get that established, I can set the value of the control to 0, or minvalue. (Because the value doesn't change, but just disappears when delete is pressed, I can't say "If myNumericUpDown.Value = NULL)