Jump to content
  • Advertisement
Sign in to follow this  
C3rial

WindowState

This topic is 3150 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi people! Initial windowstate not working problem. There's no question or anything, I just wanted to post my solution to a silly problem I've been working on now. Hopefully google's bots will pick it up so others won't have to spend much time with this. I've got a winform application that starts with a loadingform, and when the loadingform finished (progressbar full) it starts up the main form. The main forms initial windowstate was set to "normal", but it always started up minimized. The way I fixed this problem was setting the main form to TopMost = True, and then having a timer that after 2 seconds sets TopMost = False. Then I stop the timer, and things work out fine :D If someone has a better solution to this problem feel free to enlighten me :)

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!