OpenFileDialog - 设置 - Filter 笔记
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