Guest HierOfIsildur Posted September 5, 2002 Posted September 5, 2002 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? Quote
*Gurus* Derek Stone Posted September 5, 2002 *Gurus* Posted September 5, 2002 You'll 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 you'll see how it works. The namespace you're looking for is Microsoft.Win32 and the classes are Registry and RegistryKey. Quote Posting Guidelines
Guest HierOfIsildur Posted September 5, 2002 Posted September 5, 2002 I know how to do the windows end of it. Doesn't my program need code in Sub Main to open the file? Quote
*Gurus* Derek Stone Posted September 5, 2002 *Gurus* Posted September 5, 2002 Yes, System.Environment.CommandLine will contain the file that you need to open if one was passed as a parameter. Quote Posting Guidelines
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.