Reputation: 86085
I'd like to start a new windows form from a console program. Is this possible?
Upvotes: 0
Views: 2473
Reputation: 20840
Add a reference to Windows.Forms, then:
static void Main(string[] args)
{
Application.EnableVisualStyles();
Application.Run(new Form()); //of course you can put your own custom Form here.
}
Upvotes: 6