string charkey = "กขฃคฅงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรลวศษสหฬอฮ";
if (enname.Text.Contains(charkey.ToString()) == true)
{
MessageBox.Show("Please enter Name english language", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Stop);
return;
}
string StringPattern = "[ก-ฮ]";
Regex StringRgx = new Regex(StringPattern);
if (StringRgx.Match("tungmanกข").Value != string.Empty)
{
MessageBox.Show("Please enter Name english language", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Stop);
return;
}