标签:efi box textbox string ext file 路径 获取文件 direct
首先的引入 using System.IO;
OpenFileDialog file = new OpenFileDialog();
file.ShowDialog();
string selectfile = file.SafeFileName;
FileInfo finfo = new FileInfo(selectfile);
this.textBox1.Text = finfo.Directory.ToString() + @"\" + finfo.Name;
标签:efi box textbox string ext file 路径 获取文件 direct
原文地址:http://www.cnblogs.com/zhushuangmei/p/7481705.html