S
Sam
Why isn't there a numberBox Windows Form control like a
textbox control but for numeric (float) input? There
doesn't seem to be any easy or visual solution to this
VERY SIMPLE ISSUE in either version of Visual Studio. I
simply wanted to create a Windows app where a user could
enter miles or kilometers, gallons or liters, and see the
other in the adjacent box. The form was easy but the
textbox control would not let me cast any number of any
kind from textbox.text and of course, input validation is
a pain since there is no built-in masking capability.
Validating keystrokes becomes too complex because it
doesn't handle backspace, paste or any other interaction.
Hours of searching help resulted in nothing useful
whatsoever. The Numeric boolean attribute of Textbox
documented in help isn't recognized by Vis Studio. Is
this a bug or just poor documentation?
Must I reinvent the wheel to get a number from a form
control? Please reply with C# code sample, if possible.
textbox control but for numeric (float) input? There
doesn't seem to be any easy or visual solution to this
VERY SIMPLE ISSUE in either version of Visual Studio. I
simply wanted to create a Windows app where a user could
enter miles or kilometers, gallons or liters, and see the
other in the adjacent box. The form was easy but the
textbox control would not let me cast any number of any
kind from textbox.text and of course, input validation is
a pain since there is no built-in masking capability.
Validating keystrokes becomes too complex because it
doesn't handle backspace, paste or any other interaction.
Hours of searching help resulted in nothing useful
whatsoever. The Numeric boolean attribute of Textbox
documented in help isn't recognized by Vis Studio. Is
this a bug or just poor documentation?
Must I reinvent the wheel to get a number from a form
control? Please reply with C# code sample, if possible.