Fre*_*red 6 c#
允许用户在C#中浏览文件的最佳方法是什么?
Rya*_*ley 16
using (OpenFileDialog dlg = new OpenFileDialog()) { dlg.Title = "Select a file"; if (dlg.ShowDialog()== DialogResult.OK) { //do something with dlg.FileName } }
归档时间:
17 年,8 月 前
查看次数:
265 次
最近记录:
16 年,9 月 前