File Open Dialog

  • Thread starter Thread starter Drew
  • Start date Start date
D

Drew

Hey guys,

I wrote a little test program that use OpenFileDialog.

It works on the device, but the file I want to open is not
listed unless I put it in the Business, Personal, or Templates
folders.

Is this the way it was designed to work?

Can I open a file in the root directory?

Thanks,

Drew
 
On Pocket PC the OpenFileDialog is limited to the My Documents folder and
it's subfolders. It will also include the contents of a storage card if it
either has an "ignore_my_docs" file present, or if it has a My Documents
folder where it will only list the contents of this folder on the card.
Items on storage cards will have a small overlay on their icon to indicate
they are on removable storage.
The dialog does not allow you to browse around other parts of the file
system. This is for consistency with the Pocket PC design guidelines and
built in applications.

Peter
 
Thanks Peter.

I want to allow the end user to use their own files (.txt, .jpg, etc.)

What is the best way for the user to get these files to the device
(activesync?)
and ensure that they are somewhere in the MyDocuments folder?

Drew
 
By default the "Mobile Device" shell folder which is displayed by clicking
Explore in ActiveSync starts at the My Documents folder on the device. You
can also setup automatic synchronisation of files with ActiveSync which will
synchronise the contents of My Documents on the device with a folder on the
desktop - usually "My Documents\[Device Name] My Documents"

Peter

--
Peter Foot
Windows Embedded MVP
OpenNETCF.org Senior Advisor
www.inthehand.com | www.opennetcf.org
 
Back
Top