在打开文件对话框多个文件扩展名 [英] Multiple file extensions in OpenFileDialog
本文介绍了在打开文件对话框多个文件扩展名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何使用使用同一组内的多个文件扩展名打开文件对话框
?
我有过滤器=BMP | * .BMP | GIF | * .gif注意| JPG | * .JPG | PNG | *巴纽| TIFF | * .TIFF
,我想这样JPG是创建组* .JPG和* .JPEG,TIFF格式* .TIF和* .TIFF也所有的图形类型?我该怎么做?
How can I use multiple file extensions within one group using OpenFileDialog
?
I have Filter = "BMP|*.bmp|GIF|*.gif|JPG|*.jpg|PNG|*.png|TIFF|*.tiff"
and I want to create groups so JPG are *.jpg and *.jpeg, TIFF are *.tif and *.tiff and also 'All graphic types'? How can I do that?
推荐答案
的试试:
Filter = "BMP|*.bmp|GIF|*.gif|JPG|*.jpg;*.jpeg|PNG|*.png|TIFF|*.tif;*.tiff"
然后做所有分机的复制/粘贴另一轮(与;
如上)的所有图形类型:
Then do another round of copy/paste of all the extensions (joined together with ;
as above) for "All graphics types":
Filter = "BMP|*.bmp|GIF|*.gif|JPG|*.jpg;*.jpeg|PNG|*.png|TIFF|*.tif;*.tiff|"
+ "All Graphics Types|*.bmp;*.jpg;*.jpeg;*.png;*.tif;*.tiff"
这篇关于在打开文件对话框多个文件扩展名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文