Jump to content
Xtreme .Net Talk

Recommended Posts

Guest HierOfIsildur
Posted

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?

  • *Gurus*
Posted
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.
Guest HierOfIsildur
Posted

I know how to do the windows end of it.

Doesn't my program need code in Sub Main to open the file?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...