03-30-2023, 05:23 AM
Alright. I broke down and added y0ur Icon utility mostly to cover my bases:
Code: (Select All)
' set title icon
Sub DisplayIcon
Icon$ = UCase$(TitleBarIcon$)
If Right$(Icon$, 4) = ".ICO" Then
If _FileExists(Icon$) Then
Icon& = LOADICON&(Icon$, 1)
If Icon& < -1 Then
_Icon Icon&
_FreeImage Icon&
End If
End If
Else
Icon& = _LoadImage(TitleBarIcon$, 32)
If Icon& < -1 Then
_Icon Icon&
_FreeImage Icon&
End If
End If
End Sub