[DllImport("user32.dll")]
static extern bool SetWindowPlacement(IntPtr hWnd,
[In] ref WINDOWPLACEMENT lpwndpl);
<DllImport("user32.dll")> _
Public Shared Function SetWindowPlacement( _
ByVal hWnd As IntPtr, _
ByRef lpwndpl As WINDOWPLACEMENT) As Boolean
End Function
None.
Please add some!
WINDOWPLACEMENT param = new WINDOWPLACEMENT();
param.length = Marshal.SizeOf(typeof(WINDOWPLACEMENT));
param.showCmd = 1; //SW_SHOWNORMAL
SetWindowPlacement(this.Handle, ref param);
The ManagedWindowsApi project (http://mwinapi.sourceforge.net) provides a
class ManagedWinapi.SystemWindow that has a Position property.