Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2012-03-11
3
Medium Priority
?
598 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 49

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 86

Accepted Solution

by:
Mike Tomlinson earned 2000 total points
ID: 37707413
0
 
LVL 49

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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

886 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