PCinvent.info

PCinvent Studio Template

Sep 23 2008
C# to Open Firefox and go to a URL Print E-mail
Tuesday, 23 September 2008


Read More Articles in: Technology>>>Programming

This Article is written by This e-mail address is being protected from spam bots, you need JavaScript enabled to view it


How to ask "C#" application to Open Firefox or Internet Explorer to browse a specific URL? Here are two methods in a class I wrote simpiliy demonstrate how to. You should have imported these libraries before you use the object Process.
using System;
using System.ComponentModel;
using System.Diagnostics;
        private void button1_Click(object sender, EventArgs e)
       {
           Process.Start("firefox.exe", "http://www.pcinvent.info/");
       }

        private void button2_Click(object sender, EventArgs e)
       {
           Process.Start("IEexplorer.exe", "http://www.pcinvent.info");
       }
Comments (0)Add Comment

Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley

busy
Tags:  Technology Programming C# Open Firefox and go to a URL Process.Start C#
Last Updated ( Wednesday, 24 September 2008 )
 
< Prev   Next >
Site by PCinvent.com