Example #1
0
 public void ResizeWindow(int width, int height)
 {
     PInvoke.MoveWindow(WindowHandle, X, Y, width, height, 1);
     Width  = width;
     Height = height;
     extendFrameIntoClientArea();
 }
Example #2
0
 public void MoveWindow(int x, int y)
 {
     PInvoke.MoveWindow(WindowHandle, x, y, Width, Height, 1);
     X = x;
     Y = y;
     extendFrameIntoClientArea();
 }
Example #3
0
 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();
 }