A
aledrjones
Hi
I've got a c# application that will often run in the background as it
is used to monitor connections to a host.
An activex control displays the communication between the app and the
host. When the host disconnects the app, I want to take a screen shot
of the active x control.
Two methods I've tried have worked, one using key commands to trigger a
print screen on the form, and another uses BitBlt to grab a specific
rectangle of the form. However both have the drawbacks that they do
not work properly when the application is not in the foreground. The
first method captures the active window, the second captures the right
area but whatever windows that are in front of the app will obscure it.
First method
example:http://www.cornetdesign.com/2005/04/screen-print-capture-in-c-using_08.html
Second method example:
http://groups.google.co.uk/group/mi...c#+control+save+image&rnum=2#cfc5cc70953c86b2
Any ideas? I've had a look here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/scibf.asp
but it looks very complicated.
Cheers
Al
I've got a c# application that will often run in the background as it
is used to monitor connections to a host.
An activex control displays the communication between the app and the
host. When the host disconnects the app, I want to take a screen shot
of the active x control.
Two methods I've tried have worked, one using key commands to trigger a
print screen on the form, and another uses BitBlt to grab a specific
rectangle of the form. However both have the drawbacks that they do
not work properly when the application is not in the foreground. The
first method captures the active window, the second captures the right
area but whatever windows that are in front of the app will obscure it.
First method
example:http://www.cornetdesign.com/2005/04/screen-print-capture-in-c-using_08.html
Second method example:
http://groups.google.co.uk/group/mi...c#+control+save+image&rnum=2#cfc5cc70953c86b2
Any ideas? I've had a look here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/scibf.asp
but it looks very complicated.
Cheers
Al