C
Chris Soulsby
Hi,
I have a control that contains a embedded ie control. I used the following
code to add a onclick event to a table element:
IHTMLDocument2 oIHTMLDocument2 =
(IHTMLDocument2)m_oWebBrowserControl.Document;
mshtml.HTMLTableClass oHTMLElement =
(mshtml.HTMLTableClass)oIHTMLDocument2.all.item(strObjectName, null);
((mshtml.HTMLTableEvents2_Event)oHTMLElement).onclick += oEventHandler;
This code works fine, however, sometimes it seems to stop working and I
don't receive any more onclick events. This seems to be a random.
Has anyone come across this problem, do you how to get solve it?
Thanks
Chris
I have a control that contains a embedded ie control. I used the following
code to add a onclick event to a table element:
IHTMLDocument2 oIHTMLDocument2 =
(IHTMLDocument2)m_oWebBrowserControl.Document;
mshtml.HTMLTableClass oHTMLElement =
(mshtml.HTMLTableClass)oIHTMLDocument2.all.item(strObjectName, null);
((mshtml.HTMLTableEvents2_Event)oHTMLElement).onclick += oEventHandler;
This code works fine, however, sometimes it seems to stop working and I
don't receive any more onclick events. This seems to be a random.
Has anyone come across this problem, do you how to get solve it?
Thanks
Chris