Associated File Type

D

Devlei

I have a file extension that is associated to my application. Opening
a file with that extension starts my application OK, but how do I get
it to start with that selected file open?

With thanks
Dave
 
M

Mattias Sjögren

I have a file extension that is associated to my application. Opening
a file with that extension starts my application OK, but how do I get
it to start with that selected file open?

If the file association is set up correctly the file name will be
passed on the command line. Use a parameterized Main method

Shared Sub Main(ByVal CmdArgs As String())

or call System.Environment.GetCommandLineArgs to retrieve the file
path.


Mattias
 

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