When I open an exe file the taskbar icon appears correctly, but when I try to open the shortcut of the same exe file, the taskbar icon is different (shows a Default icon). It works fine when combine taskbar button is changed to "Never" in taskbar settings, but if it is in "Always, Hide labels" the above problem is seen.
The Exe Icon:
The Shortcut Icon:
I am using Microsoft Visual Basic 2010 Express. Application Icon is set programmatically and in Visual Basic Under Application-> Icons - Default option is selected.
The part of my code is given below:
If fs.FileExists(AppPathStr & "\FAQIcon.txt") Then
Me.Icon = New Icon(AppPathStr & "\" & "filecontent.ico")
Else
Me.Icon = New Icon(AppPathStr & "\" & "Project1.ico")
End If
I have found a similar problem in the Link that says that the exe file and the shortcut of the same exe file should not be pointing at the same location.
Instead I need to point the shortcut exe to a launcher application that shells out to the main application, but I don't want to have a launcher application.
Does anyone know the solution for this problem ?


AppPathStr & "\FAQIcon.txt"andAppPathStr & "\Project1.ico". - J. Scott Elblein