Not showing a form when an application runs

  • Thread starter Thread starter RSH
  • Start date Start date
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
 
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

Similar Threads

Main() questions 3
My timer doesn't work 1
Close the Program 1
forms error 3
A simple question about show 2
Forms Flow 7
using the show command 1
What am I doing wrong with GCHandle here... 6

Back
Top