1

我在 OpenFileDialog 上设置了以下过滤器:

MyApp Files (*.ced, *.cdr, *.wrp, *.wrap, *.out) | *.ced; *.cdr; *.wrp; *.wrap; *.out | All Files (*.*) | *.*

问题是 .out 文件没有出现。难道我做错了什么?

4

2 回答 2

2

想通了,我不得不像这样删除分号之间的空格:

MyApp Files (*.ced, *.cdr, *.wrp, *.wrap, *.out) |*.ced;*.cdr;*.wrp;*.wrap;*.out| All Files (*.*) | *.*
于 2012-04-26T18:24:23.967 回答
0

用以下内容替换您的过滤器表达式,应该可以解决问题

OpnefileDlg.Filter = "(*.ced, *.cdr, *.wrp, *.wrap) | *.ced, *.cdr, *.wrp, *.wrap | All Files (*.*) | *.*";
于 2012-04-26T18:12:07.833 回答