Re: Image not from image or picture component?
- From: fajp@xxxxxxxxxxxxxxxxxxxx (Frank Adam)
- Date: Mon, 20 Mar 2006 02:25:39 +1100
On 19 Mar 2006 05:56:22 -0800, "Mike Williams" <gagamomo@xxxxxxxxxxx>
wrote:
Microsoft Internet ControlsIf I tell you that the webbrowser control exposes its
window-handle publicly (WebBrowser1.hWnd),
wouldn't that simplify things, Mike?
I don't really know Dag. I've never written any web browser code. Frank
seems to think that VB has a problem accessing the WebBrowser hwnd, but
I haven't tried it myself. Also, I've no idea at all what the OP means
by the phrase, "webbrowser components page".
Maybe if you could post some simple working WebBrowser code I could try
it out and see if I can get a copy of its current window. I don't even
know how to get a WebBrowser control onto my Form. I know nothing at
all about this stuff and I've just opened up VB so that it shows all of
its Enterprise Edition controls and I can't see a WebBrowser control.
Can I add it from Project / Components Dag? If so, what is it called?
Then it's the globe thingo in the toolbox. Once you see it, you may
even get the urge to make a search application that looks up multiple
search engines at once.... but that's just a guess. ;-)
Howevere, i'm both sad and happy to report, that i was not imagining
things. On my system at least, the following code will generate an
error from the control. "method failed"
Option Explicit
Private Sub Form_Click()
Debug.Print WebBrowser1.hWnd 'bails here.
End Sub
Private Sub Form_Load()
WebBrowser1.Navigate2 "http://groups.google.com"
End Sub
I haven't tried finding the window handle with the findwindow APIs,
but that might work.
--
Regards, Frank
.
- Follow-Ups:
- Re: Image not from image or picture component?
- From: Mike Williams
- Re: Image not from image or picture component?
- References:
- Re: Image not from image or picture component?
- From: Mike Williams
- Re: Image not from image or picture component?
- From: Dag Sunde
- Re: Image not from image or picture component?
- From: Mike Williams
- Re: Image not from image or picture component?
- Prev by Date: Re: late binding
- Next by Date: Re: Visual Basic Menus/Classes
- Previous by thread: Re: Image not from image or picture component?
- Next by thread: Re: Image not from image or picture component?
- Index(es):
Relevant Pages
|