I am trying to save the size and state information for a Form in C# and
cannot get it to work correctly. I can get the size and WindowState
information but setting this information on FormLoad() does not work right.
I performed this stuff with the WINDOWPLACEMENT structure and everything was
fine under Win32. What is the equivalent of the GetWindowPlacement() and
SetWindowPlacement() functions in Win32 for DotNET?

Re: WINDOWPLACEMENT by Claes

Claes
Mon Aug 25 03:04:05 CDT 2003

There is no equivalent in .NET
We call SetWindowPlacement in the VisibleChanged
event when the form first becomes visible.
It was the only place we could find where it
worked without problems

/claes


"Patrick DeNardo" <pdenardo@stny.rr.com> wrote in message
news:#jc32rraDHA.2960@tk2msftngp13.phx.gbl...
> I am trying to save the size and state information for a Form in C#
and
> cannot get it to work correctly. I can get the size and WindowState
> information but setting this information on FormLoad() does not work
right.
> I performed this stuff with the WINDOWPLACEMENT structure and everything
was
> fine under Win32. What is the equivalent of the GetWindowPlacement() and
> SetWindowPlacement() functions in Win32 for DotNET?
>
>



Re: WINDOWPLACEMENT by jwallison

jwallison
Mon Aug 25 11:48:00 CDT 2003

See Form.StartPosition (= FormStartPosition.Manual)


--
Regards,

Jim Allison
jwallison.1@bellsouth.net
(de-mung by removing '.1')



"Patrick DeNardo" <pdenardo@stny.rr.com> wrote in message
news:%23jc32rraDHA.2960@tk2msftngp13.phx.gbl...
> I am trying to save the size and state information for a Form in C#
and
> cannot get it to work correctly. I can get the size and WindowState
> information but setting this information on FormLoad() does not work
right.
> I performed this stuff with the WINDOWPLACEMENT structure and everything
was
> fine under Win32. What is the equivalent of the GetWindowPlacement() and
> SetWindowPlacement() functions in Win32 for DotNET?
>
>