Solved

How to get the html source from an explorer window knowing only the window handle via vb 6?

Posted on 2004-09-13
6
153 Views
Last Modified: 2010-05-02
The exact question I needed an answer for was already in the forum.

How to get the html source from an explorer window knowing only the window handle - programaticlly??

However, the link to the answer does not work.  Could you post the answer back in the forum?

thanks,
bch
0
Comment
Question by:bch3000
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
6 Comments
 
LVL 18

Accepted Solution

by:
bobbit31 earned 500 total points
ID: 12044971
Dim shWindows           As New SHDocVw.ShellWindows
Dim tmpExplorer               As SHDocVw.InternetExplorer
 
For Each tmpExplorer In shWindows
   if tmpExplorer.HWND = <handle> then
     msgbox tmpExplorer.document.body.innerHTML
     exit for
   end if
Next

0
 
LVL 18

Expert Comment

by:bobbit31
ID: 12044982
you'll need to add "Microsoft Internet Controls" under project/references
0
 
LVL 18

Expert Comment

by:bobbit31
ID: 12559759
gimme points
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

756 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