Sign in to follow this  

WindowState

This topic is 2846 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

This topic is 2846 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this