Quote Originally Posted by yokesee View Post
I use this I do not know if it will work for you.
I use a similar code but the code (SendMessageLong & WM_SETICON & ICON_BIG) works only at the form_load event.
After the form is loaded the code doesnt change the icon at the windows taskbar anymore.
You can try it yourself. I tested the code with Win8/10/11.

I just hope there is another API to change the icon at the windows taskbar at runtime (after the form is loaded)...