我在 OpenFileDialog 上设置了以下过滤器:
MyApp Files (*.ced, *.cdr, *.wrp, *.wrap, *.out) | *.ced; *.cdr; *.wrp; *.wrap; *.out | All Files (*.*) | *.*
问题是 .out 文件没有出现。难道我做错了什么?
我在 OpenFileDialog 上设置了以下过滤器:
MyApp Files (*.ced, *.cdr, *.wrp, *.wrap, *.out) | *.ced; *.cdr; *.wrp; *.wrap; *.out | All Files (*.*) | *.*
问题是 .out 文件没有出现。难道我做错了什么?
想通了,我不得不像这样删除分号之间的空格:
MyApp Files (*.ced, *.cdr, *.wrp, *.wrap, *.out) |*.ced;*.cdr;*.wrp;*.wrap;*.out| All Files (*.*) | *.*
用以下内容替换您的过滤器表达式,应该可以解决问题
OpnefileDlg.Filter = "(*.ced, *.cdr, *.wrp, *.wrap) | *.ced, *.cdr, *.wrp, *.wrap | All Files (*.*) | *.*";