OpenFileDialog ofDlg = new OpenFileDialog(); ofDlg.Filter = "文件夹"; DialogResult dRet = ofDlg.ShowDialog(); if (dRet == DialogResult.OK) { string strFile = ofDlg.FileName; textBox2.Text = strFile; } else { textBox2.Text = ""; }
OpenFileDialog 用法
最新推荐文章于 2022-08-23 08:31:29 发布