FileDialog members in CF

  • Thread starter Thread starter emars
  • Start date Start date
E

emars

Greetings,
I am setting an OpenFileDialog to an initial directory using:
OpenFileDialog.InitialDirectory = "\\My Documents\\Dev\\";
OpenFileDialog.Filter = "XML Files|*.xml";

What returns is a list of all XML files on the PocketPC, not limited
to the initialDirectory specified.
Is my formatting incorrect somewhere or is this how CF does things?

In another instance I would like to set a filter to only see EXEs that
contain a string "PTMW" at the end, and set:
OpenFileDialog.Filter = "PTMW EXE Files|*ptmw.exe";
This returns all exe's on the system also, can CF filter this way or
is there another way to do it?

Thanks in advance,

(I looked through the archives and did not see answers to this yet, but
I appologize if I am repeating questions)
 
On Pocket PC the InitialDirectory property doesn't have any effect, the
system looks in My Documents folder on the device and optionally the My
Documents path on a storage card or root of the storage card if there is an
"ignore_my_docs" file present.
On generic CE platforms it is possible to specify other paths for the dialog
to browse.

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

Back
Top