*FileDialog for custom filesystems?

A

Alex

Hello,

I have a component that allows me to access a custom file system.
It has APIs for enumerating objects (folders, files) etc.

I was wondering, is there a way to easily create a FileDialog using an external "data provider" to browse such custom file systems?

Thanks,
Alex.
 
C

Chris Altmann

I don't know if it qualifies as "easy", but you could write an Shell
Namespace Extension, and the standard file dialog would be able to navigate
into it.

http://msdn.microsoft.com/library/?...v/namespaceextension/namespace.asp?frame=true

http://www.codeproject.com/shell/namespcextguide1.asp

If you're adventurous, you could even integrate with Windows Desktop Search
and/or Vista Search (the later being a definite plus with Vista's common
file dialogs).

http://addins.msn.com/devguide.aspx#AddingaNewStore

http://msdn.microsoft.com/windowsvista/discoverable/

Hello,

I have a component that allows me to access a custom file system.
It has APIs for enumerating objects (folders, files) etc.

I was wondering, is there a way to easily create a FileDialog using an
external "data provider" to browse such custom file systems?

Thanks,
Alex.
 
A

Alex

Hello Chris,

Thank you for your reply.

Chris Altmann said:
I don't know if it qualifies as "easy", but you could write an Shell
Namespace Extension, and the standard file dialog would be able to navigate
into it.

Unfortunately, I do not want the Windows shell to have access to that file-system, only the specific application.

Best wishes,
Alex.
 
L

Linda Liu [MSFT]

Hi Alex,

The FileDialog class in .Net is a wrapper of the CommonDialog in Win32. And
the CommonDialog accesses the windows file system using the window shell on
the windows file system. If you want to use a standard FileDialog to access
your custom file system, you should write an Shell Namespace Extension.
There might be little possibility not using Shell Namespace Extension if
you want to access your custom file system with the standard FileDialog.

If you have any other concerns or need anything else, please don't hesitate
to let me know.


Sincerely,
Linda Liu
Microsoft Online Community Support

====================================================
When responding to posts,please "Reply to Group" via
your newsreader so that others may learn and benefit
from your issue.
====================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top