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

  • Thread starter Thread starter Mark Johnson
  • Start date Start date
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)
 
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
 
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)
 
The same result, by the way on the Emulator.

Mark Johnson, Berlin Germany
(e-mail address removed)
 
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.
 
Back
Top