Hi,
You can add the Microsoft Internet Control 1.1 reference to your
application, then you can use it like this:
SHDocVw.Interne tExplorerClass ie=new SHDocVw.Interne tExplorerClass ();
Object vHeaders = null;
Object vPost = null;
Object vTarget = null;
Object vFlags = null;
ie.Navigate("ht tp://www.google.com" ,ref vFlags,ref vTarget,ref vPost,ref
vHeaders);
ie.Visible =true;
Hope this helps.
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
| Content-Class: urn:content-classes:message
| From: "VR" <Vi************ ****@gat.com>
| Sender: "VR" <Vi************ ****@gat.com>
| Subject: open a new browser window in Windows Forms
| Date: Wed, 6 Aug 2003 22:49:02 -0700
| Lines: 10
| Message-ID: <07************ *************** *@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcNcp5rf0BZ5eyx/RSa8lDKB5Azu0g= =
| Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
| Path: cpmsftngxa06.ph x.gbl
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1747 68
| NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
|
| Hi,
|
| How can I open a web site in a new browser window from a
| regular windows form? (not an ASP.NET)
|
| Do I have to use a COM ActiveX control or is there
| anything like that already built in in .NET?
|
| Thanks,
| VR
|