This is a continuation of a few of my previous posts, for information on what I'm doing, check out the first paragraph in this post.
I want a way to at least try to keep the screenshot bounds form from going outside the window bounds. I tried creating a rectangle from the screen using Screen.GetWorki ngArea(this), then checking if the screenshot bounds rectangle is contained within the screen rectangle, but I ran into a problem. If someone has multiple monitors, GetWorkingArea( ) is only going to get the bounds of the screen that the program is mostly contained within. If I stop the screenshot bounds form from going outside the screen rectangle, users will never be able to drag the form outside of the screen that it opened up in.
I need a way to make sure that the bounds window isn't being dragged outside the screen bounds, but to also account for odd monitor configurations, like one on top and one to the side, making an "L" shape.
How might I go about doing this?
One idea that I have is doing the check AFTER the resizing/moving is done, check if it's within the current screen's bounds and move/resize it accordingly to make sure it isn't outside. A problem with this is what if someone wants to take a screenshot in between their 2 monitors, or of both the monitors?