Search Tools Links Login

Associate file type and icon with your app

I made some improvements on the code I submitted way back on 12/20/1998 (WOW! today is 12/20/2001 - its been 3 years to the day! My, how time flys!)
There has been about 11,000 downloads and a lot of comments on this code since then so I thought that an improvement should be posted.
I've added a SHChangeNotify function to update the icon in Windows immediately.
Original post: For those of you who want to add a touch of professionalism to your program, now you can create a file type in the Windows Registry database which will associate all files ending with your program's file extension ( to your program. You also specify an icon for your file type and a description. This example also shows you how to use Command$ to open these files in your program once the file is clicked or opened in Windows, and a quick tip on creating files in the Windows Recent file folder (Start > Documents).
Email if you need help. Good luck.

Original Author: RGSoftware

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 80 times


Visual Basic 6

Posted: 9/3/2020 3:45:00 PM
Size: 4,455 bytes

Loading Comments ...


No comments have been added for this post.

You must be logged in to make a comment.