OpenFileDialog.OpenFile() in C# under .NET Compact Framework

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi!
I am trying to make an application to run under windows CE 4.2 where I have
to open a file, to get some info from it.
Now my problem is that the method OpenFile() is not supported for Compact
framework. How can I do this?
 
Use the dialog's FileName property and one of the System.IO classes (like
the TextReader) to open and read the file.

-Chris
 
That depends on the kind of file you are opening but you could try
something like this (this is psuedocode):

OpenFileDialog ofd = new OpenFileDialog();
ofd.ShowDialog();
File.Open(ofd.FileName, .....)
 
Back
Top