Numericupdown validating


One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community. To MADeon: The numeric Up Down control works fine but it has the Updown I don't like. Key Press 'Limiter la saisie à des caractères numériques If Not Char. Thanks ), "##,##0") will format it with thousand seperators. New() 'This call is required by the Windows Form Designer. Handled = True Msg Box("You must enter a positive integer") End Select End Sub End Class you can also inherit from the textbox control to create a "numerictextbox" control ... Cheers, Greg Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access. Do you have a solution for formatting the textbox with thousand separators? Form #Region " Windows Form Designer generated code " Public Sub New() My Base.

Let's say you are defining a base unit string like 'inch'.

And additional units strings with a factor like 'cm' 1/2.54.

If the user tries to enter an invalid character, it prevents them from doing so and just beeps.

Just to be safe, you'll probably also want to include code to handle the Validating event of the Numeric Up Down, since the control does not prevent the user from pasting non-numeric data. Form #Region " Windows Form Designer generated code " Public Sub New() My Base.

Please use a larger tablet, notebook or desktop computer, or change your screen resolution settings.