Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / November 2007

Tip: Looking for answers? Try searching our database.

Open the file with associated viewer application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jayesh - 30 Nov 2007 21:58 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.