Home All Groups Group Topic Archive Search About

Setting the "Restore Down" Size

Author
15 Sep 2006 4:58 PM
rowe_newsgroups
Hello all,

When the user clicks the Restore button on the taskbar, how can I set
what size the form restores to? I would like to have it "remember" what
the last size was, like most windows apps do. Note - I use a XML config
file to track the user settings.

Any advice is welcome,

Seth Rowe

Author
15 Sep 2006 6:54 PM
Herfried K. Wagner [MVP]
"rowe_newsgroups" <rowe_em***@yahoo.com> schrieb:
> When the user clicks the Restore button on the taskbar, how can I set
> what size the form restores to? I would like to have it "remember" what
> the last size was, like most windows apps do. Note - I use a XML config
> file to track the user settings.

Save and restore Form position and layout with this component
<URL:http://www.codeproject.com/cs/miscctrl/RealPosition.asp>

Form Placement Component
<URL:http://www.codeproject.com/csharp/Placement.asp>

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
15 Sep 2006 11:36 PM
rowe_newsgroups
Terrific! Thanks!

Herfried K. Wagner [MVP] wrote:
Show quoteHide quote
> "rowe_newsgroups" <rowe_em***@yahoo.com> schrieb:
> > When the user clicks the Restore button on the taskbar, how can I set
> > what size the form restores to? I would like to have it "remember" what
> > the last size was, like most windows apps do. Note - I use a XML config
> > file to track the user settings.
>
> Save and restore Form position and layout with this component
> <URL:http://www.codeproject.com/cs/miscctrl/RealPosition.asp>
>
> Form Placement Component
> <URL:http://www.codeproject.com/csharp/Placement.asp>
>
> --
>  M S   Herfried K. Wagner
> M V P  <URL:http://dotnet.mvps.org/>
>  V B   <URL:http://classicvb.org/petition/>