Print Page | Close Window

ShowBrowseFolder (Only Specific File Extension)

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=17537
Printed Date: 23 November 2024 at 2:13pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ShowBrowseFolder (Only Specific File Extension)
Posted By: JamGodz
Subject: ShowBrowseFolder (Only Specific File Extension)
Date Posted: 07 November 2010 at 10:42pm
Hi Good Day!

Is it possible to ShowBrowseFolder of CommonDialog to display the specific file extension let say i want to display only *.xls

Please refer...



Thanks..






Replies:
Posted By: Aaron
Date Posted: 08 November 2010 at 2:30am
Hi,
 
Following will show option to select only xls OR all extensions .
 
With CommonDialog
    .Filter = "Excel (*.xls)|*.xls |" & _
                 "All (*.*)|*.*"
    .ShowOpen
End With
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: JamGodz
Date Posted: 10 November 2010 at 12:35am
hi Aaron... thank you for your quick reply... but i don't want to use the commondialog.. just wanna use the BrowseForFolder like the screenshot.. tnx


Posted By: Aaron
Date Posted: 10 November 2010 at 4:30am
Hi,
 
OK, I didn't read your post properly Embarrassed 
 
Seems filtering on files doesn't work with BrowseForFolder dialog. It shows all files Confused 
 
Why don't you use "normal" dialog? If you show files & folders I don't see difference with using .ShowOpen dialog...
 
Good luck.
    


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net