WINDOWPLACEMENT

  • Thread starter Thread starter Patrick DeNardo
  • Start date Start date
P

Patrick DeNardo

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?
 
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
 
See Form.StartPosition (= FormStartPosition.Manual)


--
Regards,

Jim Allison
(e-mail address removed)
(de-mung by removing '.1')
 
Back
Top