471,627 Members | 1,483 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,627 software developers and data experts.

Not showing a form when an application runs

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(fals e);

Application.Run(new Form1());

}

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

Suggestions?

Thanks,

Ron
Jan 9 '06 #1
2 1162
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.

Jan 9 '06 #2
RSH
Thanks!

Perfect.
<an*********@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
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.

Jan 9 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Dennis | last post: by
7 posts views Thread by =?Utf-8?B?TWF0dA==?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.