This can be done without p / invoke.
Try the following:
Rectangle rect = Screen.PrimaryScreen.WorkingArea; rect.Width = rect.Width / 2; Bounds = rect;
This will place the current window to the left of the main screen.
Then just add this to place it to the right of the screen.
Location = new Point(rect.Width, 0);
Nicolas tyler
source share