Click here to Skip to main content
15,885,910 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.
Posted

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: http://stackoverflow.com/questions/8407066/how-do-i-associate-a-filetype-with-an-icon[^].

If you did not create file associations yet, learn it starting from this Microsoft article: http://msdn.microsoft.com/en-us/library/windows/desktop/cc144148%28v=vs.85%29.aspx[^].

To work with registry, please see: http://msdn.microsoft.com/en-us/library/microsoft.win32.registry.aspx[^].

—SA
 
Share this answer
 
v3
Comments
Debabrata TPX 1-Nov-13 10:52am    
Thankx I got it from the 1st link...Thankx very much.
Sergey Alexandrovich Kryukov 1-Nov-13 11:09am    
This is great. You are very welcome.
Good luck, call again.
—SA
VB
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
 
Share this answer
 
Hi,

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?

Thanks!
 
Share this answer
 
Comments
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