Wednesday, January 5, 2011

Restrict Special symbol in TextBox in C#

  private void ctlUL_KeyPress(object sender, KeyPressEventArgs e)
        {
            try
            {
                if (!char.IsLetterOrDigit(e.KeyChar) && e.KeyChar!=8 )
                {
                    e.Handled = true;
                    return;
                }
         }

No comments:

Post a Comment

Mat Table Angular

Mat Table in Angular Mat table is used to display data . its a material designed styled data-table . For using Material Table MatTableMo...