以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 打开文件对话框的过滤 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=106686) |
-- 作者:newsun2k -- 发布时间:2017/9/13 18:52:00 -- 打开文件对话框的过滤 通过OpenFileDialog从很多图片中选择一个文件。 选择文件的文件名包含特定的字符,例如“ABC123”. 现在希望打开的文件夹中仅显示包含“ABC123”的文件,可否实现,如何实现? |
-- 作者:newsun2k -- 发布时间:2017/9/13 19:02:00 -- 哦,知道了 |
-- 作者:有点甜 -- 发布时间:2017/9/13 22:38:00 -- dim dlg as new OpenFileDialog dlg.FileName = "test.xls" dlg.Filter = "Excel|*.xls" If dlg.ShowDialog = DialogResult.OK Then End If |
-- 作者:newsun2k -- 发布时间:2017/9/14 9:00:00 -- 这样做的 dim dlg as new OpenFileDialog dlg.Filter = "Excel|*test*.xls" If dlg.ShowDialog = DialogResult.OK Then End If |
-- 作者:有点甜 -- 发布时间:2017/9/14 9:07:00 -- 嗯,可以的。 |