日期:2014-05-18 浏览次数:20900 次
using (System.Windows.Forms.OpenFileDialog flg = new OpenFileDialog()) { if (flg.ShowDialog() == DialogResult.OK) { string strFileName = System.IO.Path.GetFileName(flg.FileName); string strFileDir = System.IO.Path.GetDirectoryName(flg.FileName); } }