troubles with events in C# and WebBrowser, etc. 
Author Message
 troubles with events in C# and WebBrowser, etc.

Hi,

I'm developing an Explorer band that I intend to interact with the
WebBrowser component of an IE instance.  I've been using BandObjectLib
( http://www.*-*-*.com/ ).  It works great
at constructing the Explorer bar, and I can get an IE instance as a
WebBrowserClass.  With that I can call Navigate() and load pages, etc.

However, I'm not able to get any events from the WebBrowserClass to work.

I also tried code on MSDN here
( http://www.*-*-*.com/
ml/cpconhandlingeventsraisedbycomsource.asp), and that also did not work --
no Explorer events were handled by the client.

On a somewhat related note, I've been trying to access the URL history via
IUrlHistoryStg2 and then IEnumSTATURL.  I'm writing C# wrappers, and I'm
especially having trouble with IEnumSTATURL.Next()'s parameter syntax.  Is
there anything available -- tools, published source code, published
libraries -- that will help me with working with these COM interfaces for
IE, etc.?

Thanks,
Arun



Tue, 31 May 2005 15:38:15 GMT  
 troubles with events in C# and WebBrowser, etc.

Best regards,

Lion Shi [MSFT]
MCSE, MCSD
Microsoft Support Engineer

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.  2001 Microsoft Corporation. All rights
reserved.
--------------------

    Subject: troubles with events in C# and WebBrowser, etc.
    Date: Fri, 13 Dec 2002 01:38:15 -0600
    Lines: 26
    X-Priority: 3
    X-MSMail-Priority: Normal
    X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
    X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

    Newsgroups:
microsoft.public.dotnet.framework.component_services,microsoft.public.dotnet
framework.interop,microsoft.public.dotnet.languages.csharp,microsoft.public
inetsdk.programming.webbrowser_ctl,microsoft.public.windows.inetexplorer.ie
5.programming.activexco
    NNTP-Posting-Host: visit3.vp.uiuc.edu 130.126.117.150
    Path:
cpmsftngxa09!cpmsftngxa10!tkmsftngp01!cppssbbsa01.microsoft.com!TK2MSFTNGP08
!TK2MSFTNGP10
    Xref: cpmsftngxa09 microsoft.public.dotnet.framework.interop:10326
microsoft.public.dotnet.languages.csharp:116248
microsoft.public.inetsdk.programming.webbrowser_ctl:15686
microsoft.public.dotnet.framework.component_services:4218
    X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

    Hi,

    I'm developing an Explorer band that I intend to interact with the
    WebBrowser component of an IE instance.  I've been using BandObjectLib
    (http://www.codeproject.com/csharp/dotnetbandobjects.asp).  It works
great
    at constructing the Explorer bar, and I can get an IE instance as a
    WebBrowserClass.  With that I can call Navigate() and load pages, etc.

    However, I'm not able to get any events from the WebBrowserClass to
work.

    I also tried code on MSDN here

(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgu...
    ml/cpconhandlingeventsraisedbycomsource.asp), and that also did not
work --
    no Explorer events were handled by the client.

    On a somewhat related note, I've been trying to access the URL history
via
    IUrlHistoryStg2 and then IEnumSTATURL.  I'm writing C# wrappers, and I'm
    especially having trouble with IEnumSTATURL.Next()'s parameter syntax.  
Is
    there anything available -- tools, published source code, published
    libraries -- that will help me with working with these COM interfaces
for
    IE, etc.?

    Thanks,
    Arun



Sat, 04 Jun 2005 16:18:48 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. trouble with C# events...

2. Send a keyboard event to a WebBrowser?

3. WebBrowser event grabbing

4. webbrowser events not fired when URL sent to a named targetframe

5. Adding events to MS WebBrowser control generates errors ?

6. External events in hosted WebBrowser

7. events of WebBrowser

8. Events in webbrowser-embedded Excel worksheet

9. Key Event in WebBrowser ctl

10. using the webbrowser ctl from C#

11. How To: View Source for WebBrowser control from C# program

12. Excel Automation using .NET/C# and Webbrowser Control

 

 
Powered by phpBB® Forum Software