The program I'm writing has 2 forms, a main control form, then another that is completely transparent except for a 1 pixel border, sizing handles at the 4 corners, and a moving handle in the middle. When you click a button in the main form a screenshot is taken of the portion of the screen outlined by the second form. This works great, but I've run into an issue.
The second form is simply a form without a form border, with an arbitrary background color (maroon), with the transparency key set to that color, so that the form is transparent. Unfortunately, this means that if I set the form over another window, I can't control what's underneath that window, which means that if the main control window ends up underneath the form, I can't click the button and I have to move the form out of the way so I can get at the control window.
Is there a way that I can make the screenshot box appear on top of all other windows, but still allow me to click through it to control whatever is underneath it? An example of this would be Camtasia Recorder. It has a bounds box that you can move and resize to specify the portion of the screen that you want to record, but you can still control any windows that might be underneath it.
The second form is simply a form without a form border, with an arbitrary background color (maroon), with the transparency key set to that color, so that the form is transparent. Unfortunately, this means that if I set the form over another window, I can't control what's underneath that window, which means that if the main control window ends up underneath the form, I can't click the button and I have to move the form out of the way so I can get at the control window.
Is there a way that I can make the screenshot box appear on top of all other windows, but still allow me to click through it to control whatever is underneath it? An example of this would be Camtasia Recorder. It has a bounds box that you can move and resize to specify the portion of the screen that you want to record, but you can still control any windows that might be underneath it.
Comment