Click here to Skip to main content
15,124,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Friends,
I need some help that how to assign icons to specific file type ".ensrrrr". I badly need the help friends please help me. Many many thankx in advance.

This is done by prescribing the icon and file type in registry. First of all, you need to register the file type in system registry. On top of that, a file type icon can be specified. This .REG file will give you the idea:[^].

If you did not create file associations yet, learn it starting from this Microsoft article:[^].

To work with registry, please see:[^].

Debabrata TPX 1-Nov-13 10:52am
Thankx I got it from the 1st link...Thankx very much.
This is great. You are very welcome.
Good luck, call again.
Dim rk As RegistryKey
        Dim path As String
        path = Application.StartupPath & "\RES\paradox.ico"
        rk = Registry.ClassesRoot.CreateSubKey(".paradox\DefaultIcon")
        rk.SetValue("DefaultIcon", path)

This is the key and value to be set

Can you say clearly.
Is yours is Web Application or Windows Application?
If Web application, the Icon file will be displayed at the Browser Tab.
If Windows Application, the Executable file installed will have the specified Icon.

What you actually mean by "Icon to specific file type", do you use same file types as .txt,.mp3,.doc or your own file extensions?

Debabrata TPX 1-Nov-13 10:56am
Icons to specific file type means, like .txt file has it's own default icon and .mp3 files have thir own icons and so on

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900