How to Take a screenshot of Webbrowser1 in Visual Basic 6?

Is there any code in visual basic 6 that allows you to take a screenshot of the webbrowser1 control? Thanks!
SDfathaAsked:
Who is Participating?
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
0
 
Martin LissOlder than dirtCommented:
I didn't write the code in the attached application but you can use its code using CaptureWindow to take a picture of any window using it's handle.

Capture.zip
0
 
Martin LissOlder than dirtCommented:
While the code I posted is a nice little app, it doesn't actually work in this case because I just discovered that the Webbrowser control doesn't have an hwnd:( It could be figured out I assume, but Idle_Mind's link looks like a good solution.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.