📜  c# 打开文件对话框 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:38.498000             🧑  作者: Mango

代码示例1
OpenFileDialog dialog = new OpenFileDialog();
if (DialogResult.OK == dialog.ShowDialog()) 
{
    string path = dialog.FileName;
}