How To Associate a Custom Icon with a File Extension (247529)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q247529 SUMMARY
Generally, a file type associated with an executable is given the icon of the executable. For example, a Microsoft Excel file displays the Microsoft Excel icon, and a Microsoft Word file displays the Microsoft Word icon. However, if you associate a file extension with an .exe file, it uses the default Windows icon. This article explains how to associate an icon with a file extension.
When the custom icon is associated with a particular file type in the registry, the new default icon may not be recognized by Windows until the computer is restarted. This can be prevented by making an API call to notify Windows that the icon has changed.
REFERENCES185453 How To Associate a File Extension with Your Application
Modification Type: | Minor | Last Reviewed: | 7/15/2004 |
---|
Keywords: | kbAPI kbhowto kbIcon kbRegistry kbShellGrp KB247529 |
---|
|