The format Exception may be thrown because you are not receiving any value or the string from the t.Text may be "" (empty string).please try to debug and check the issue or place your code snippet and let me check it.
Do not use Int32.Parse() when you do not know the contents of the input. Use the Int32.TryParse() Method[^], or put the parsing code within a try/catch block. You should also use your debugger to check the value that the code is actually trying to interpret; don't assume it's the value that you think is there.
One of these days I'm going to think of a really clever signature.
Last Visit: 31-Dec-99 18:00 Last Update: 30-May-16 8:22