public void ResizeWindow(int width, int height) { PInvoke.MoveWindow(WindowHandle, X, Y, width, height, 1); Width = width; Height = height; extendFrameIntoClientArea(); }
public void MoveWindow(int x, int y) { PInvoke.MoveWindow(WindowHandle, x, y, Width, Height, 1); X = x; Y = y; extendFrameIntoClientArea(); }
public void SetWindowBounds(int x, int y, int width, int height) { PInvoke.MoveWindow(WindowHandle, x, y, width, height, 1); X = x; Y = y; Width = width; Height = height; extendFrameIntoClientArea(); }