Once you have setup this association you still have to handle the file in your application. You would do so something like this:
VB Code:
  1. Dim cla As String() = Environment.GetCommandLineArgs()
  2.  
  3.         If cla.Length > 1 Then
  4.             'A command line argument has been passed to the application.
  5.             MessageBox.Show("You have opened the file " & cla(1) & "'.")
  6.         End If
Note that you should call File.Exists on the argument because it is possible for the user to pass anything they want on the commandline. You should prepare for even unlikely things because university tests have proven that 7 out of 10 users are morons.