Click here to Skip to main content
15,884,298 members
Articles / Programming Languages / Visual Basic

Very simple way to restore form window to its previous state

Rate me:
Please Sign up or sign in to vote.
5.00/5 (5 votes)
20 Mar 2011CPOL 9.8K   2  
Here is a way to do this without using the registry.In the project's properties, Settings pane, add the following settings. You can name these settings anything you want, but use the same setting name in the code shown below:Name: MainWindowStateType:...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
9 Mar 2011Аslam Iqbal 2 alternatives  
Very simple way to restore form window to its previous state
Please Sign up or sign in to vote.
3 Jun 2011Edgemeal
Here's another way. This saves the form's normal WindowState settings, so you can still save even if the form is minimized, and it can be used for any form. It also includes a sub to keep forms inside the desktop area.Check the Regpath string before using!...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions