IsDigit Komutu İle İlgili Örnek C#

IsDigit Komutu İle İlgili Örnek C#


digit

[code language=”csharp”] public partial class Form1 : Form
{
public Form1()

{
InitializeComponent();

}
private void textBox1_KeyPress(object sender, KeyPressEventArgs e)

{
if (char.IsDigit(e.KeyChar) == false && e.KeyChar!=(char)08)

{
e.Handled = true;

}

}
}

} [/code]

Projeyi İndir

Bir yanıt yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir