File Type assignment details

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I've done some file type assignment to a program I've made such that e.g.
when I double click on files of type .foo it will be openened in my program.

However, I'm still missing two things:

1) When I right click on the .foo file (in MS Windows) and selects
properties, my application is only shown with its icon under the 'opens
with:' label and not with the name of the program like it is with e.g.
Notepad. How can I from C# assign a 'description' to my exe. Or what regedit
key controls this?

2) How can I control the icon for the 'document' files of type foo. Rigth
now it looks like it some default paper sheet with a mini icon of the apps
icon in the middle. Nice default concept, but I would like to define my own
icon for the document.

Thanks,

Jesper.
 
However, I'm still missing two things:
1) When I right click on the .foo file (in MS Windows) and selects
properties, my application is only shown with its icon under the 'opens
with:' label and not with the name of the program like it is with e.g.
Notepad. How can I from C# assign a 'description' to my exe. Or what
regedit
key controls this?

2) How can I control the icon for the 'document' files of type foo. Rigth
now it looks like it some default paper sheet with a mini icon of the
apps
icon in the middle. Nice default concept, but I would like to define my
own
icon for the document.
Well I don't think there is an API for this; it used to be modifying the
registry.

What I would do is download RegMon from sysinternals:
http://www.sysinternals.com/utilities/regmon.html

RegMon allows you to log changes to the registry. Start RegMon, and use
Windows Explorer to make the changes you want through Tools -> Folder
Options -> File Types. Using this method you can determine which registry
settings to change.

Greetings,
Wessel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top