Category: C#

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("",ref vFlags,ref vTarget,ref vPost,ref
ie.Visible =true;

Using installed Internet Explorer:

System.Diagnostics.Process proc = new
proc.StartInfo.FileName = "iexplore";
proc.StartInfo.Arguments = "";


0 0 vote
Article Rating



How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.