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
Paul G. Tobey [eMVP] - 30 Nov 2007 22:10 GMT
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.
> Hi All,
>
[quoted text clipped - 6 lines]
> Thanks,
> Jayesh Modha
Christian Resma Helle - 30 Nov 2007 22:45 GMT
Try looking into System.Diagnostics.Process. There is a property in ProcessStart where you specify it to use ShellExecuteEx instead of CreateProcess.
--
Regards,
Christian Resma Helle
http://christian-helle.blogspot.com
----- ORIGINAL MESSAGE -----
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.
> Hi All,
>
[quoted text clipped - 6 lines]
> Thanks,
> Jayesh Modha
<ctacke/> - 30 Nov 2007 23:22 GMT
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.

Signature
Chris Tacke, eMVP
Join the Embedded Developer Community
http://community.opennetcf.com
> Hi All,
>
[quoted text clipped - 6 lines]
> Thanks,
> Jayesh Modha