Not showing a form when an application runs

R

RSH

I'm sure this is a basic question but how do I get an application to run but
not show a Form until I'm ready to show it?

The application uses this code:
static void Main()

{

Application.EnableVisualStyles();

Application.SetCompatibleTextRenderingDefault(false);

Application.Run(new Form1());

}



I tried to remove the new Form1() call but obviously this doesn't work.

Suggestions?



Thanks,

Ron
 
A

animus.blue

If you change the the ShowInTaskbar property to false and change the
WindowState property to Minimized, then the result should be no form
displaying when the application starts.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top