Pallabi
Pallabi

Reputation: 23

how to add link in windows form to open another File (.txt or .img)?

In My Windows form i want to add buttons or links , clicking on those will redirect me to open another page (.txt file and .img file) . How to do that ?

Upvotes: 0

Views: 2923

Answers (2)

Epdub
Epdub

Reputation: 1

In addition to Nitin's answer, it started working for me after adding the "@" like this:

System.Diagnostics.Process.Start(**@**"C:\\myText.txt");

Upvotes: 0

Nitin Purohit
Nitin Purohit

Reputation: 18580

In your eventhandler you can directly call: Process.Start("C:\\myText.txt");

Upvotes: 1

Related Questions