【发布时间】:2012-07-03 23:01:43
【问题描述】:
我正在尝试制作一个允许用户查看 PictureBox 中的图标的程序。我希望用户只能打开 24x24 像素的图像。
我想在 OpenFileDialog 中放置一个过滤器,以仅显示 24x24 的图像。有没有办法做到这一点?我听说可以通过自定义 OpenFileDialog 和使用 P/Invoke 来实现。
【问题讨论】:
-
根据我们在聊天中的讨论,我已经编辑了您的问题。
-
I would like to put a filter in an OpenFileDialog to only show images that are 24x24. Is there any way to do this?不,没有。 -
好的,谢谢!我很高兴我现在知道了
标签: c# .net winforms openfiledialog