Re: Show and Tell AxWebBrowser Control in Visual Studio.Net 2003 (Its a mess)
BucolicJedo
hi Lau Han Ching, have u worked with AxWebBrowser Mshtml document. Actually i am trying to write a keyboard event handler for TextBox elements, or whole document, displayed. The code must give u a hint as to what i am trying to accomplish
mshtml.HTMLDocument doc1=(mshtml.HTMLDocument)axWebBrowser1.Document;
mshtml.HTMLDocumentEvents2_Event eve=(mshtml.HTMLDocumentEvents2_Event)doc1;
eve.onkeydown+=new HTMLDocumentEvents2_onkeydownEventHandler(eve_onkeydown);
now these lines of code doesnt give any error but the dont work either. it makes my browser insensitive to any keyboard or mouse event.
i will be very obliged for any help.