How to open a Web Page From Win Form

Using Microsoft Internet Control 1.1

You can add the Microsoft Internet Control 1.1 reference to your application, then you can use it like this:
SHDocVw.InternetExplorerClass ie=new SHDocVw.InternetExplorerClass ();
Object vHeaders = null;
Object vPost = null;
Object vTarget = null;
Object vFlags = null;
ie.Navigate("http://www.google.com",ref vFlags,ref vTarget,ref vPost,ref
vHeaders);
ie.Visible =true;

Using installed Internet Explorer

System.Diagnostics.Process proc = new
System.Diagnostics.Process();
proc.StartInfo.FileName = "iexplore";
proc.StartInfo.Arguments = "http://www.google.com/";
proc.Start();

Back to C#

All Pages

Email

ASP

JSP

C#

Web Mail

Windows Plesk

Linux Plesk

PHP

ASP.NET

Persits ASPUpload

Wiki Help

  Page Info My Prefs Log in
This page (revision-4) last changed on 09:35 02-Feb-2007 by Administrator.
 
Page Hit Count: 50

Referring Pages:
...nobody

JSPWiki v2.4.71