Home All Groups Group Topic Archive Search About

Browser integration with c# application

Author
10 Mar 2006 6:58 AM
plmanikandan
Hi,

  I need to integrate the browser with my C# windows application.

When I search thru the websites for this,I found SHDocVw.dll is needed
for integrating Web browser into c# application.I did'nt found
SHDocVw.dll in my system.I am  using Visual studio .net 2003 and
windows Xp(service pack 2).Anybody provide me some examples regarding
this issues.

Mani

Author
10 Mar 2006 7:53 AM
Steven
Hi,

Go to projetc / Add reference / COM / And choose Microsoft Internet
Controls.
Then add the axWebBrowser1_DocumentComplete function and use in :
mshtml.HTMLDocument htmlDocument =
(mshtml.HTMLDocument)axWebBrowser1.Document;
mshtml.HTMLBody body = (mshtml.HTMLBody)htmlDocument.body;
body.innerHTML = "<HTML>...</HTML>"

Hope this helps.
Are all your drivers up to date? click for free checkup

Author
10 Mar 2006 10:42 AM
chrism
Check the web link below for a good example.

http://www.c-sharpcorner.com/Internet/WebBrowserInCSMDB.asp

Bookmark and Share