OpenFileDialog always pointing on My Documents?

M

MuZZy

Hi,

I' m trying to use OpenFileDialog for my PDA application, like below:

OpenFileDialog ofd = new OpenFileDialog();
ofd.InitialDirectory = @"\Windows";
if (ofd.ShowDialog() != DialogResult.OK ) return;
OpenDocument(ofd.FileName);

When dialog opens, it always points to "All Folders" which in fact shows contents of My Documents
folder in Main memory, regardless of what InitialDirectory i pre-set.
And it doesn't allow me to browse anything else

Is there a way to browse the whole file system (including flash memory) using this class, or i
should use some other component? What would you advise me then?

Thank you,
Andrey
 
W

William LaMartin

Interesting article, but I saw no way to download the mentioned
UncommonDialog Class. Is there a link?
 

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