-
1 Attachment(s)
Form-Shot
Hello!
I've just play around how to take a shot of a form. Well its just takes a partial shot from the screendc. As long as your form can fit in the screen this takes the shot as well. I have extended it to work on your local form /CaptureME()/, but you can take a shot of any app /Capture_hWnd/, you just have to set the target form's hWnd. It saves the output to a bmp file. Its not the best solution, but its simple, smart and beautiful :)
Have fun!
-
Re: Form-Shot
I've been extended my example, with a new method.
Function CaptureFormArea(frm As Form)
You can take a shot of the form's "client area", but without the borders and titlebar.
kapshure_form-2.zip
-
Re: Form-Shot
some issue with this function as it always captures the same image, even if the controls are changed
-
Re: Form-Shot
Thanks for your reporting! Its not a real issue, but i just didn't included a Clipboard.Clear before assigning the image, that is the reason the clipboard will not be updated.
Post updated.
kapshure_form-4.zip
-
Re: Form-Shot
glad it was so simple
i would have thought that the new data would have overwritten the clipboard content anyway, but obviously not
i will play with it more later
-
Re: Form-Shot
Hi Jim,
You are even more famous, as I reckon this is your code on VB-Helper -
http://www.vb-helper.com/howto_delay...top_image.html
I like that I can direct the capture to the clipboard.
I am about to post a question to the VB6 forum to see if it is possible to build up a series of captures in the clipboard ? (ending up with a single long image in the clipboard.