Why does OpenFileDialog NOT find files in the "My Documents" folder?

M

Mark Johnson

VS NET 2003 SP1 C# on Poceket PC 2002 :

My Programs read and writes SqlCe Databases (*.sdf).

When using the OpenFileDialiag (and also SaveFileDialog) I cannot see the
files in the "My Documents" folder, only the files on the SD-Card (which I
did not expect, but is very nice).

// 5.30. Why is the OpenFileDialog restricted to the "My Documents" folder?
// The initial directory of the OpenFileDialog is restricted to the "My
Documents" folder or any of it's subfolders. This restriction is imposed by
the Pocket PC operating system to help users organize their files under the
standard directories.

Any idea why this is so. I can see no exrea Parameters to force this.

Mark Johnson, Berlin Germany
(e-mail address removed)
 
P

Peter Foot [MVP]

Have you set a Filter on the file types to display?
e.g.

openFileDialog1.Filter = "All Files|*.*";
or
openFileDialog1.Filter = "SqlCe Databases|*.sdf";
etc

Peter
 
M

Mark Johnson

Yes ( OpenFileMainFrame.Filter = "SqlCe (*.sdf) | *.sdf";) and it finds the
files on the SD-Card at once.
Also on the SaveFileDialog (depite option Memory) you can not see the "My
Documents" nor the Diretorys inside.

Mark Johnson, Berlin Germany
(e-mail address removed)
 
M

Mark Johnson

The same result, by the way on the Emulator.

Mark Johnson, Berlin Germany
(e-mail address removed)
 
M

Mark Johnson

German and the file on the SD-Card were copied from the memory and can be
read and wriiten to from other programs.
In the Emulator I created the .sdf file from an other program. They can all
be seen and read with the Filemanger and SqlCe-Query.
 

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