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')
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top