Export (0) Print
Expand All

UpDownBase.ValidateEditText Method

When overridden in a derived class, validates the text displayed in the up-down control.

[Visual Basic]
Protected Overridable Sub ValidateEditText()
[C#]
protected virtual void ValidateEditText();
[C++]
protected: virtual void ValidateEditText();
[JScript]
protected function ValidateEditText();

Remarks

Some examples of validation include comparing the text entered to the data type set in your derived class, comparing it to a list of values, or verifying it to be within a range of values.

Notes to Inheritors:  When overriding this method in a derived class, be sure to add code in this method to validate the text property of the up-down control. This method will be called if the UserEdit property is set to false when the Text property is set.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

UpDownBase Class | UpDownBase Members | System.Windows.Forms Namespace | UserEdit | Text

Show:
© 2014 Microsoft