Printable View
Solved!
The very first thing apparently wrong with your code is that you are comparing string value with numbers. Try Code: Convert.ToInt32(Text1.Text) > 0 and then see what the results are.
Convert.ToInt32(Text1.Text) > 0