Open the file with associated viewer application

  • Thread starter Thread starter Jayesh
  • Start date Start date
J

Jayesh

Hi All,

I am working on win CE 4.2 with .NET CF 2.0 application. I have a form
in which I have view button. View button is used view the any file.
The file is coming dynamically. It can be any type of file. I need to
find it's associated viewer application and open that file with that
viewer. Do anybody knows anything related to this?

Thanks,
Jayesh Modha
 
ShellExecuteEx() will do that for you, although you'll have to P/Invoke it.
You can look it up in the native code SDK for your target device.

Paul T.
 
If you want to open a file with it's associated application, call
ShellExecute. If you want to know what that application is, it's in the
registry following the same rules as the desktop. There are plenty of
examples on line for this format.
 
Back
Top