Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie: how can i click on a button and open a file and a website?

Status
Not open for further replies.

eramgarden

Programmer
Aug 27, 2003
279
US
I'm trying to write my first C# app:

I have a form, with 2 buttons on it:

The first one : i want to click and open a website
The second one: I want to click and open a file on c drive.

VB has shellexecute command.

How can I do this in C#, I looked at the File Object but cant find any examples to go by.

Any ideas would be great.
 
You start a program with the Process class, ex:

System.Diagnostics.Process.Start("myProgram.exe");
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top