Solved

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

Posted on 2012-03-11
3
591 Views
Last Modified: 2012-08-13
Is there any code in visual basic 6 that allows you to take a screenshot of the webbrowser1 control? Thanks!
0
Comment
Question by:SDfatha
  • 2
3 Comments
 
LVL 46

Expert Comment

by:Martin Liss
ID: 37707186
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
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 500 total points
ID: 37707413
0
 
LVL 46

Expert Comment

by:Martin Liss
ID: 37707423
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question