How can I animate the tray icon while the main application is processing? I already tried the suggestion here, but the icon does not animate during process. I also tried putting the animation in a separate thread but still no luck.
There's a very good example of an SystemTrayNotifyIcon with Event Generator over at the CodeProject .
I've looked at this project before but didn't end up using it, due to my artistic inabilities, but the example given does the job quite well.
Take a look at http://www.codeproject.com/KB/shell/IconAnimation.aspx and http://www.c-sharpcorner.com/UploadFile/nkumar/AnimateSysteminCSharp11292005235157PM/AnimateSysteminCSharp.aspx for a more recent example.
来源:https://stackoverflow.com/questions/2536890/animate-tray-icon-while-processing