using (OpenFileDialog fileSelectDialog = new OpenFileDialog())
{
    fileSelectDialog.Multiselect = false;
    fileSelectDialog.CheckFileExists = true;

    fileSelectDialog.Filter = "(*.dll,*.exe)|*.exe;*.exe|(所有文件)|*.*";
    fileSelectDialog.FilterIndex = 0;
    fileSelectDialog.FileOk += fileSelectDialog_FileOk;
    fileSelectDialog.ShowDialog();
}

 

(提示1)|筛选表达式1|文件说明2|筛选表达式2

(提示1;提示2;提示3)|筛选1;筛选2;筛选3;筛选4|(B提示1;B提示2;B提示3)|B筛选1;B筛选2;B筛选3;B筛选4

相关文章:

  • 2022-01-07
  • 2021-09-25
  • 2021-07-30
  • 2022-01-01
  • 2022-02-21
  • 2021-08-24
  • 2021-05-28
  • 2021-07-21
猜你喜欢
  • 2022-12-23
  • 2021-05-28
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2022-02-26
相关资源
相似解决方案