在我的应用程序中,我有一个带有如下过滤器的 OpenFileDialog Image Files|*.bmp;*.png;*.gif|All Files|*.*
:。在我的机器上,对话框中的过滤器按原样显示:
Image Files
All Files
但在我老板的机器上,对话框中的过滤器如下所示:
Image Files (*.bmp, *.png, *.gif)
All Files (*.*)
我没有一行代码可以更改过滤器,所以我不明白,为什么它会以这种方式显示。更奇怪的是,当我用我的帐户登录老板的电脑并运行相同的 .exe 时,我的老板尝试了它,它就像一个魅力!
我和我老板的机器都运行 Windows 7 Enterprise。