SyntaxFix
Write A Post
Hire A Developer
Questions
simply use this code in textbox :
private void textBox1_TextChanged(object sender, EventArgs e) { double parsedValue; if (!double.TryParse(textBox1.Text, out parsedValue)) { textBox1.Text = ""; } }