Skip to content

@Mpdreamz /gist:997979
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
MoveWindow to screen
var lastScreen = this.GetScreenFromRect(lastRect);
var newScreen = this.GetScreenFromRect(newRect);
if (!lastScreen.Bounds.Equals(newScreen.Bounds))
{
var x = (newRect.Left - newScreen.Bounds.X) + lastScreen.Bounds.X;
var y = (newRect.Top - newScreen.Bounds.Y) + lastScreen.Bounds.Y;
var width = newRect.Right - newRect.Left;
var height = newRect.Bottom - newRect.Top;
Window32API.MoveWindow(this.hWnd, x, y, width, height, false);
}
this.Activate();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.