TextBoxی برای حروف بزرگ
برای اینکه یک TextBox فقط حروف بزرگ را قبول کند کد زیر را در رویداد keypress آن بنویسید :
private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if (!(char.IsUpper(e.KeyChar) || char.IsControl(e.KeyChar))) { e.Handled = true; } }
سلام.سایتتون واقعا عالیه.