ToolsOptionsBaseControl<TOptions>.ValidateNumeric Method

Definition

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.

Applies to