Export (0) Print
Expand All
Expand Minimize

Code: Displaying a Web Page in Internet Explorer (Visual C#)

Visual Studio .NET 2003

This example displays www.microsoft.com in Internet Explorer using the Process.Start method.

Example

System.Diagnostics.Process.Start(
"C:\\Program Files\\Internet Explorer\\IExplore.exe",
"www.microsoft.com");

Compiling the Code

Copy the code and paste it into the Main method of a console application.

Replace the first parameter of Start with the path to IExplore.exe, if the program is installed in a different location.

See Also

Process.Start Method | Starting Processes | General Language Example Topics

Show:
© 2014 Microsoft