Kumar
Kumar

Reputation: 1015

How to launch a file using OpenFileDialog in WinForm/WPF?

After the file has been selected from OpenFileDialog, I want file to be launched in the respective application - PDF in acrobat reader, word in winword and so forth.I am looking for built in functionality if it exists, please advise.

Upvotes: 1

Views: 223

Answers (1)

Dominik
Dominik

Reputation: 3362

Try Process.Start("file.pdf")

Upvotes: 2

Related Questions