Open the file with associated viewer application

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
 
P

Paul G. Tobey [eMVP]

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.
 
G

Guest

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.
 

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