Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Handling HTMLDocument2 Events

13 views
Skip to first unread message

krishnadevan

unread,
Sep 9, 2004, 10:06:37 AM9/9/04
to
Hello Everybody

I am programmer in c#. Now i need to get events of Microsft Web
Browser.I Try it by getting the

browser1.document .

What i did is shown below , for getting context menu event


m_ActiveHTMLClass=(mshtml.HTMLDocumentClass ) axWebBrowser1.Document;

m_ActiveHTMLClass.HTMLDocumentEvents2_Event_oncontextmenu+=new
HTMLDocumentEvents2_oncontextmenuEventHandler(m_ActiveHTMLClass_HTMLDocumentEvents2_Event_oncontextmenu);

private bool
m_ActiveHTMLClass_HTMLDocumentEvents2_Event_oncontextmenu(IHTMLEventObj
pEvtObj)
{

//My codes

return false;

}

I got the context menu event but after this event is added context menu
is not shown in browser..
What is the solution ....


Help me if anyone knows

Thanks & Regards
Krishnadevan.K


0 new messages