You may want your control to inherit the
IValidator
interface as well. The
IValidator
contains the following properties :
public string ErrorMessage
public bool IsValid
and the method
public void Validate()
So your class declaration would be :
public class PasswordTextBox : TextBox, IValidator
Good luck!
Eduard