Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 599
  • Last Modified:

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!
0
SDfatha
Asked:
SDfatha
  • 2
1 Solution
 
Martin LissRetired ProgrammerCommented:
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
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
0
 
Martin LissRetired ProgrammerCommented:
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

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now