Hi,
How can i restrict the user to input only numbers.
I have done the following coding for VB
private void textBox1_TextChanged(object sender, EventArgs e)
{
if (!char.IsNumber(e.KeyChar))
{
e.Handled = true;
}
}
But now i used it in C# it is not showing the (e.keychar) property.
I have to change my code but i dont know insted of keychar which property work in C#