Microsoft Communities

Welcome to WindowsClient.net | Sign in | Join

Here are some frequently asked questions about Windows Forms and their answers.

Windows Forms FAQs

How do I create a form that starts out being not visible?

Setting Form.Visible to false does not make my main form start up invisibly. How can I make my main form start up invisibly?

This problem is discussed in an article in the .NET docs. Search for "Setting a Form to Be Invisible at Its Inception". The idea is to startup the application in a different module than your main form. Then the application and main form can have indiependent lifetimes. Sample code is given in the referenced article.

Contributed from George Shepherd's Windows Forms FAQ



Page view counter