i got error when i try to make textbox red if number below 18
can you helping me with that ?
i dont know how to fix the problem
private void textBox1_TextChanged(object sender, EventArgs e)
{
double numt = 18;
if (textBox1.Text <= numt) ////error here
{
textBox1.BackColor = Color.Red;
}
else
{
textBox1.BackColor = Color.White;
}