This documentation is archived and is not being maintained.

UpDownBase.ValidateEditText Method

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

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


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.


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