我一直在想怎么才能把所有的pdf集合成一个软件,这样就不用每次都去瞎找了。
正好用C#开发了一个小功能,在此期间遇到过很多困难,已经解决。
下面把这个功能分享给你。
获取方式在文末
效果图如下:
选择一个pdf就可以打开了
代码如下:
封装了一个类
using System;using System.Collections.Generic;using System.Diagnostics;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;namespace File{ class Pdf { public string str; public void _pdf() { Process myProcess = new Process();//创建一个新的进程,去处理当前要执行的阅读事件 myProcess.StartInfo.FileName = Application.StartupPath + "pdf"+str; // 进程的开始信息文件路径名为默认从程序 > binDebu