by RGSoftware (5 Submissions)
Category: Registry
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (13 Votes)
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 (yourfile.xxx) 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 [email protected] if you need help. Good luck.