Ok I need help if I have this code and I wanted to know if there was a way to detect if the number is greater than the one in the textbox?
if (textbox1.text == "2")
{
//code
}
and I was wondering is there anyway to detect if the number is greater than that so say textbox1.text = "5" it is greater than 2 so therefore it does the code from the if command?
Sample for your real application:
You can create extension method:
And use it this way: