ToolsOptionsBaseControl<TOptions>.ValidateNumeric Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Validates the current value of the given numeric control, and shows message if the value is not valid.
protected:
virtual bool ValidateNumeric(System::Windows::Forms::NumericUpDown ^ numControl, System::String ^ errMessageToShow);
protected virtual bool ValidateNumeric (System.Windows.Forms.NumericUpDown numControl, string errMessageToShow);
abstract member ValidateNumeric : System.Windows.Forms.NumericUpDown * string -> bool
override this.ValidateNumeric : System.Windows.Forms.NumericUpDown * string -> bool
Protected Overridable Function ValidateNumeric (numControl As NumericUpDown, errMessageToShow As String) As Boolean
Parameters
- numControl
- NumericUpDown
A NumericUpDown object.
- errMessageToShow
- String
A string that contains error message.
Returns
A Boolean value, True
if control value is valid, False
otherwise.