J
joey.powell
Hello guys. I have a Windows forms app where I need to use a couple of
numeric up/down controls. I am having a problem with them because I
cannot set the control to ReadOnly (I need for users to be able to use
the keyboard) but when users highlight all of the text and hit
backspace, all text is removed from the "textbox" portion of the
control. This control does not have ".Text" property like normal
textboxes; it has a "Value" (Decimal) property instead. Now this
creates a problem when users are able to "delete" all text from the
control. Even if they tab out to the next control, the value appears
empty. But in debug mode I can see that the value is actually still
there, although it doesn't show.
How can I force it to show...like maybe in the control's Leave event?
I have tried lots of things....Show(). .Refresh() etc...
What can I do?
Also, do you guys have any ideas on how to format the display (for
whole numbers)? For example...make 2 appear as 002?
numeric up/down controls. I am having a problem with them because I
cannot set the control to ReadOnly (I need for users to be able to use
the keyboard) but when users highlight all of the text and hit
backspace, all text is removed from the "textbox" portion of the
control. This control does not have ".Text" property like normal
textboxes; it has a "Value" (Decimal) property instead. Now this
creates a problem when users are able to "delete" all text from the
control. Even if they tab out to the next control, the value appears
empty. But in debug mode I can see that the value is actually still
there, although it doesn't show.
How can I force it to show...like maybe in the control's Leave event?
I have tried lots of things....Show(). .Refresh() etc...
What can I do?
Also, do you guys have any ideas on how to format the display (for
whole numbers)? For example...make 2 appear as 002?