Animate tray icon while processing

烂漫一生 提交于 2020-01-02 06:37:08

问题


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.


回答1:


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.




回答2:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!