I really need help with this one, I'm trying to set the app icon during run time. There is no problem when the app is not group together, it still have the set icon but when group together if you look at the taskbar, you saw the default icon. I'm using VB.NET, here is the code:
Public Sub SetIcon(ByVal strIcon As String)
Dim thisExe As System.Reflection.Assembly = _
System.Reflection.Assembly.GetExecutingAssembly() _
Dim v_AssemblyName As String = thisExe.GetName.Name & "."
Dim Asm As System.Reflection.Assembly = _
System.Reflection.Assembly.GetExecutingAssembly
Dim s As System.IO.Stream
Select Case strIcon.ToUpper()
Case "icon1"
s = Asm.GetManifestResourceStream(v_AssemblyName _
& "icon1.ico")
Case "icon2"
s = Asm.GetManifestResourceStream(v_AssemblyName _
& "icon2.ico")
Case "icon3"
s = Asm.GetManifestResourceStream(v_AssemblyName _
& "icon3.ico")
End Select
Me.Icon = New Icon(s)
s.Close()
End Sub