Tuesday, February 14, 2012

C#(Validate control input with ragex)


private void Element_KeyPress(object sender, KeyPressEventArgs e)
        {
     //isAlphaDotandComma Method Is Define In The RagexClass
            if (!RegexClass.isAlphaDotandComma(e.KeyChar.ToString()))
            {
                e.Handled = true;
            }
        }

No comments:

Post a Comment