Browsing subfolders in OpenFileDialog / SaveFileDialog

R

Robert Janik

Hi,

Is it possible to use OpenFileDialog / SaveFileDialog in Compact Framework
to open subfolders?
I was trying to set InitialDirectory property to \My
Documents\MainFolder\SubFolder, but it looks like filedialog supports only
one level of folders in "My Documents". I also tried MainFolder\SubFolder,
but with the same result. OpenFileDialog will show only "MainFolder", but
I'm unable to set InitialDirectory to "SubFolder" or browse manually into
this folder. I cannot see subfolders in the list along with files.
Could I set InitialDirectory to "SD Card\MainFolder\SubFolder"?
Should I create my own dialog which would support this functionality?

Thanks.
 
P

Peter Foot [MVP]

This is a platform limitation on Windows Mobile. You cannot change the
InitialDirectory used by the dialog. Also it supports only 1 subfolder deep
from My Documents or the root of the Storage Card.

Peter
 

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