Resize window but not fullscreen

Sorry, didn’t realize they pointed to old documentation.

See the Bounds property of a window. You want to use this instead of just setting the Top, Left, etc as those refer to the CONTENT AREA of the window and exclude things like the border, title bar, toolbar, etc.

So assuming you want the entire window including title bar etc visible, what you want to set is the BOUNDS instead of the Top, Left, etc.

As @Tim_Hare pointed out, you can use things like the Screen’s AvailableXxx properties to determine how to set the BOUNDS of the window.

If you want to consider multi monitor configurations, you need to determine WHICH screen to size it to and place it on. You may find this thread informative for that.