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

x
?
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
Medium Priority
?
162 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
  • 3
6 Comments
 
LVL 18

Accepted Solution

by:
bobbit31 earned 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

885 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