Re: Image not from image or picture component?



On 19 Mar 2006 05:56:22 -0800, "Mike Williams" <gagamomo@xxxxxxxxxxx>
wrote:

If 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?

Microsoft Internet Controls
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
.



Relevant Pages

  • Re: Screen capture control using WebBrowser control and GDI+ in a web app
    ... I suspect the Web Browser requires a hosting container to work with a window. ... is of a remote website rather than of my PC. ... using the .NET WebBrowser control to load the website URL into. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Caret problems with IE7
    ... We are creating an e-mail program, using WebBrowser to display HTML e-mails. ... another recipient edit control and back, the caret reappears. ... The window that these controls are contained in is a CFormView. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Tabbing Between and Inside WebBrowser Ctrl and other Controls
    ... > I have made a dll which hosts all the functions related to WebBrowser ... > This allows me to create a webbrowser ctrl in a window and also ... > allows me to use the Tab key inside the webbrowser control. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Image not from image or picture component?
    ... will generate an error from the control. ... Dim web_hwnd As Long ... window handle so you need to do a little work to get it. ... ("Shell Embedding" for the WebBrowser). ...
    (comp.lang.basic.visual.misc)
  • Re: Entwicklung von Unix-Anwendung mit C++ (m/w)/ NRW : Ref.-Nr.: 37302/1
    ... I am responsible for design and implementation of the persistent data server working with mySQL. ... Developed within very short time the product was successfully installed ... Reengineering and implementing a display tool for Experimental Physics Industrial Control System ... Developed an operator interface under X Window for High Energy Physics Accelerator Control System. ...
    (de.markt.arbeit.d)