Windows form is also creating a console Window.
I have successfully compiled my program, but when I execute it a console Window is launched in the background aswell as the main form. Why is this happening? Thanks in advance.
My code:
using System.Windows.Forms;
class MyFormExample {
class MyForm: Form {
}
static void Main()
{
Application.Run(new MyForm());
}
}
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Andrzej WegierskiRank #1,729 · 877 reputationPosted Mar 14, 2004, 8:23 PM EST
sacrespRank #1,944 · 754 reputationPosted Mar 15, 2004, 8:05 AM EST