Associated File Type

  • Thread starter Thread starter Devlei
  • Start date Start date
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
 
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
 
Back
Top