Click here to Skip to main content
13,189,884 members (49,554 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as

Stats

5.1K views
2 bookmarked
Posted 16 Mar 2011

Very simple way to restore form window to its previous state

, 20 Mar 2011
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.

9 Mar 2011
Аslam Iqbal
2 alternatives  
Very simple way to restore form window to its previous state
3 Jun 2011
Edgemeal
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)

Share

About the Author

RMittelman
Web Developer
United States United States
No Biography provided

| | Privacy | Terms of Use | Mobile
Web03 | 2.8.171016.2 | Last Updated 20 Mar 2011
Article Copyright 2011 by RMittelman
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid