Opening Files

  • Thread starter Thread starter HierOfIsildur
  • Start date Start date
H

HierOfIsildur

Guest
I have a program that opens a .log file.

What code do I need to make it so that I can right click the .log file and open it with my program?
 
Youll need to associate the file type of your choosing with your application. You do this by adding an entry to HKEY_CLASSES_ROOT. Launch RegEdit and youll see how it works. The namespace youre looking for is Microsoft.Win32 and the classes are Registry and RegistryKey.
 
I know how to do the windows end of it.
Doesnt my program need code in Sub Main to open the file?
 
Back
Top