Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.34 KB | None | 0 0
  1. // get the windows forms window
  2. var screen = System.Windows.Forms.Screen.FromHandle(Ark.Window.Handle);
  3.  
  4. // no more border
  5. Ark.Window.IsBorderless = true;
  6.  
  7. // "full screen"
  8. Form.FromHandle(Ark.Window.Handle).Location = new System.Drawing.Point(screen.Bounds.Left, screen.Bounds.Top);
  9. SetWindowSize(screen.Bounds.Width, screen.Bounds.Height);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement