日期:2014-05-18 浏览次数:21039 次
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);
                }
            }