This is the discussion forum for the HtmlEditor. See also the
HtmlEditor home page, where you can download the control, and the
Documentation Wiki, a collaborative project for documenting the control.
AxWebBrowser width HTML elements
Posted by:
Hernan (---.200-3-94.telecom.net.ar)
Date: Tuesday, 04-Jul-2006, 14:31:55
I can not resolve this problem.
When I attach onchange event to my browser I can not drop down the html select element.
If I do double click over the html select element it drops down.
Pleeeeeease help !
private void axWebBrowser_DocumentComplete(object sender, AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent e)
{
HTMLDocumentClass htmlDoc = (HTMLDocumentClass)this.axWebBrowser.Document;
HTMLSelectElement combo = (HTMLSelectElement)htmlDoc.getElementById("test");
((mshtml.HTMLSelectElementEvents2_Event)combo).onchange += new mshtml.HTMLSelectElementEvents2_onchangeEventHandler(this.Select_onchange);
}
private void Select_onchange(IHTMLEventObj e)
{
System.Windows.Forms.MessageBox.Show("Cambio un: "+ e.srcElement.tagName + " nombre: " + e.srcElement.id + " valor " + e.srcElement.getAttribute("value",0));
}