BucolicJedo

Believe me i know it. it has been so messy that my degree final project is stuck on this control and i cant find a way out as of yet.


Re: Show and Tell AxWebBrowser Control in Visual Studio.Net 2003 (Its a mess)

Lau Han Ching

just a bit similar to the web javascript, start with "AxWebBrowser." and follow up by the javascript and mshtml object.



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.




Re: Show and Tell AxWebBrowser Control in Visual Studio.Net 2003 (Its a mess)

pspballer07

You should just use the WebBrowser Class. The axWebBrowser class is not the official browser although you can find it on most computers. The WebBrowser class is so much easier to use.





Re: Show and Tell AxWebBrowser Control in Visual Studio.Net 2003 (Its a mess)

BucolicJedo

i will surely try it but i think there is no offical browser with Visual Studio 2003.Microsoft has given an offical Web Browser with Visual Studio 2005 but i have check it too and it has the same problem. it seems that its with MSHTML rather than Web Browser