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

J

JDeats

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

JDeats

I discovered this is not necessary, turns on Process.Start handles it
for you:

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

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