I\'m trying to make a countdown program, which I can start and stop and set the value of the countdown to 10 minutes if needed.
But I\'m getting an error I don\'t qu
The error message says exactly what's wrong: your IntExt
method isn't a top-level static class. It's a nested static class. Just pull it out of MainForm
and it'll be fine.
I know this question is old, but in case anyone else runs into this problem...
Check to make sure that the keyword "this" is not in the parameter name definition (usually from copy/paste or drag)
So, replace:
public static string AddZero(this int i)
with this:
public static string AddZero(int i)
That should solve your problem.