try
{
float number;
number = float.Parse(textBox1.Text.ToString());
}
catch (Exception h)
{
MessageBox.Show("Please provide number only");
textBox1.Text = "";
textBox1.Focus();
}
{
float number;
number = float.Parse(textBox1.Text.ToString());
}
catch (Exception h)
{
MessageBox.Show("Please provide number only");
textBox1.Text = "";
textBox1.Focus();
}
No comments:
Post a Comment