(1)
C:\>aximp c:\winnt\system 32\shdocvw.dll
Generated Assembly: C:\SHDocVw.dll
Generated Assembly: C:\AxSHDocVw.dl l
(2) Add reference to AxShDocVw.dll in your windows form project
(3) Use it !
For e.g,
protected AxSHDocVw.AxWeb Browser axWebBrowser;
public Form1()
{
//
// Required for Windows Form Designer support
//
InitializeCompo nent();
_is_navigation_ i_p = false;
//
// TODO: Add any constructor code after InitializeCompo nent call
//
// Navigate to the desired url.
object nullobj = null;
//string url =
"http://localhost.us.de ll.com/symphony/Start.aspx?"; //homePage;
//string url= ConfigurationSe ttings.AppSetti ngs[_parentApp.Appl icationName
];
this.axWebBrows er = new AxSHDocVw.AxWeb Browser();
//object opt = this.axWebBrows er.Document;
((System.Compon entModel.ISuppo rtInitialize)(t his.axWebBrowse r)).BeginInit() ;
this.axWebBrows er.Enabled = true;
((System.Compon entModel.ISuppo rtInitialize)(t his.axWebBrowse r)).EndInit();
// Make the browser control fill the entire client area.
axWebBrowser.Do ck = DockStyle.Top;
this.Controls.A dd( this.axWebBrows er );
// Finally, show the browser control.
this.axWebBrows er.Show();
}
axWebBrowser got methods like .Navigate ...
Cheers
Nirmal
"The Bear" <bu**********@h otmail.com> wrote in message news:<34******* *************@n ews20.bellgloba l.com>...
Does anyone know how to add a web browser to a Windows Form?
thanks,
The Bear