private void txtUserName_KeyPress(object sender, KeyPressEventArgs e) { e.Handled = ObjUtil.IsAlphaNumeric(e); if (e.Handled) { clsUtility.ShowInfoMessage("Enter Valid UserName...", clsUtility.strProjectTitle); txtUserName.Focus(); } }