Alpha Resource IDs can Spell Trouble

Alpha Resource IDs can Spell Trouble

Resource files are a great way to store text strings and images, but beware: Use of a resource file can override the property setting for your application’s icon. When Windows needs an icon to represent your application, it always grabs the first one available.

You can use the VB Resource Editor add-in to store icons. Normally, VB assigns an ID of “1” to the icon you assign as the application default. However, if you assign alphanumeric IDs in the Resource Editor, instead of using only numerics, the icon used for your application will be the first one listed under Icons. I always preface the desired application icon’s ID with the string “AAA” to ensure that it remains first alphabetically.


Share the Post: