So I have this bit of code, that for some reason won’t compile, because it says I am using a method as a type….
I for some odd reason can’t see what it is that is supposed to be wrong, the only article google gave me, was an article here that is less than useless.
So my question is, what is wrong with this code:
static void Main() {
Application.Run(new stat_checker());
}
public stat_checker() {
}
The
Application.Run();function takes a form as its argument for example:Application.Run(new Form1());