How to store multiple icons?

  • Thread starter Thread starter Tintin
  • Start date Start date
T

Tintin

Hi all,
I Googled without lucky. I want my app has more than one icon like ACDSee or MS Word.

Thank in advance.
 
Hi Keith,
Sorry, maybe my English not good so that you are not undertood my question.

I've read "Create Document - Centric Application in Windows forms, Part 2" topic in MSDN.
Here is code:
// Register document icon with the shell
string icokey = @"rorfile\DefaultIcon";
using( RegistryKey key =
Registry.ClassesRoot.CreateSubKey(icokey) ) {
// Map ProgID to a document icon for the shell
key.SetValue(null, @"%SystemRoot%\system32\shell32.dll,-10");
}

Now, I want that code like this:
key.SetValue(null, @"MyApp.exe, 5");

How to do?

Thanks
 

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