开发者

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

开发者 https://www.devze.com 2023-03-27 21:39 出处:网络
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 bui

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.


Try Process.Start("file.pdf")

0

精彩评论

暂无评论...
验证码 换一张
取 消