h1.post-title { color:orange; font-family:verdana,Arial; font-weight:bold; padding-bottom:5px; text-shadow:#64665b 0px 1px 1px; font-size:32px; } -->

Pages

TextBox Error Provider for Tab Page in C#.net

TextBox Error Provider for Tab Page in C#.net
public static bool TextBoxErrorControl(TextBox txt, string message,TabPage tp)
{
if (!string.IsNullOrEmpty(txt.Text))
{
ErrProvider.SetError(txt, "");
}
else
{
ErrProvider.SetError(txt, message);
}
object[] control = ErrProvider.GetControls(tp).ToArray();
if (control.Length > 0)
return false;
else
return true;
}