471,594 Members | 1,843 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,594 software developers and data experts.

resolve launch application to file extension from registry using C#?

When a user double clicks on file item in Windows Explorer, Windows
tries to open the document with whatever application is related to
it's file extension.

In my WinForms application I would like to be able to shell out and
launch referenced applications in this way (to simplify what I'm
trying to accomplish, let's say I'm trying to create a Windows
Explorer like application using WinForms and C# for .NET 2.0

What's the best way to go about resolving the appropriate launch
application to the document file extension? Is there a location in the
registry I can check?

Thanks.

Feb 8 '07 #1
2 5942
I discovered this is not necessary, turns on Process.Start handles it
for you:

E.g.
System.Diagnostics.Process.Start("c:\myfile.doc")

On Feb 8, 9:51 am, "JDeats" <Jeremy.De...@gmail.comwrote:
When a user double clicks on file item in Windows Explorer, Windows
tries to open the document with whatever application is related to
it's file extension.

In my WinForms application I would like to be able to shell out and
launch referenced applications in this way (to simplify what I'm
trying to accomplish, let's say I'm trying to create a Windows
Explorer like application using WinForms and C# for .NET 2.0

What's the best way to go about resolving the appropriate launch
application to the document file extension? Is there a location in the
registry I can check?

Thanks.

Feb 8 '07 #2
Thanks for the answer to yourself, I need exactly that information!

On 8 Feb., 21:00, "JDeats" <Jeremy.De...@gmail.comwrote:
I discovered this is not necessary, turns on Process.Start handles it
for you:

E.g.
System.Diagnostics.Process.Start("c:\myfile.doc")

On Feb 8, 9:51 am, "JDeats" <Jeremy.De...@gmail.comwrote:
When a user double clicks on file item in Windows Explorer, Windows
tries to open the document with whatever application is related to
it's file extension.
In my WinForms application I would like to be able to shell out and
launch referenced applications in this way (to simplify what I'm
trying to accomplish, let's say I'm trying to create a Windows
Explorer like application using WinForms and C# for .NET 2.0
What's the best way to go about resolving the appropriate launch
application to the document file extension? Is there a location in the
registry I can check?
Thanks.

Feb 14 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Ashok | last post: by
13 posts views Thread by David Rose | last post: by
2 posts views Thread by Peter Ignarson | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.