Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 293
  • Last Modified:

Hidden Files in CommonDialog Open

1. How can you instruct the open CommonDialog not to display certain kinds of files such as Hidden files etc. ?

2. I am creating some RAN (Random access files) and saving them on a certain directory. Is there a way I could give these filename an extention so that I can have an easier time manipulating them ?
0
hazem0
Asked:
hazem0
1 Solution
 
hazem0Author Commented:
Thank you
0
 
chrisboltCommented:
As for the CommonDialog question, that control uses the user's Windows Explorer configuration. If the user has Windows Explorer configured to show hidden files, it will and vice versa. If you would like a dialog to always hide hidden files, use the Intrinsic FileListBox control and make your own dialog box. That control gives you more power over which files are displayed when it comes to their attributes.

And for the Random access files, you should be able to specify the extension in the Open call, assuming you are using that call:

Open "C:\Whatever\myrandomfile.RAN" for Random Access As #1

RAN is the extension, obviously :-)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now