EBU ENES (ATAKAN) YILDIRIM , EBU ENES YILDIRIM , ebuenesy4
· textBox’a sadece sayı girişi için:
· private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
· {
· if (!char.IsDigit(e.KeyChar))
· e.Handled = true;
· }
Harf girme
private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (!char.IsLetter(e.KeyChar))
e.Handled = true;
}