简体   繁体   English

如何为应用程序创建/添加动画图标/图像以在任务栏中显示?

[英]How can i create/add animated icon/image for my application to be show in the taskbar?

This link shows how to make an animated icon in the tray icon : 此链接显示了如何在任务栏图标中制作动画图标:

http://blogs.msdn.com/b/abhinaba/archive/2005/09/12/animation-and-text-in-system-tray-using-c.aspx http://blogs.msdn.com/b/abhinaba/archive/2005/09/12/animation-and-text-in-system-tray-using-c.aspx

But sometimes the user can't see all the icons in the tray icon . 但是有时用户看不到任务栏图标中的所有图标。 I want that when my program is recording while a process runs, the program will be in the TaskBar with animated icon/image . 我希望当程序在运行过程中进行记录时,该程序将位于带有动画图标/图像的任务栏中。 When it stops recording, it will be back to the tray icon regular without animation. 停止录制后,它将正常返回到托盘图标而没有动画。

How can i do it ? 我该怎么做 ?

The link you've supplied demonstrates what you're trying to do by the looks. 您提供的链接通过外观展示了您正在尝试执行的操作。

All you will need to do is listen for and catch the recording event, change the notification icon and start the animation loop. 您需要做的就是监听并捕获录制事件,更改通知图标并开始动画循环。 When recording stops you will do the same - change the icon back and start the loop again. 停止录制后,您将执行相同操作-将图标改回并重新开始循环。

Whether or not a user can see taskbar or tray icons will depend on their personal preferences so I'm not sure this is something you'll have any control over. 用户是否可以看到任务栏或任务栏图标将取决于他们的个人偏好,因此我不确定这是您可以控制的事情。

If you can tell us what particular part you're getting stuck on, perhaps we can help further. 如果您可以告诉我们您遇到了哪些特定问题,也许我们可以提供进一步的帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在C#应用程序中显示任务栏通知? - How do I show a taskbar notification in my C# application? 如何隐藏form1? 我希望仅表单的图标将显示在底部的任务栏中 - How can i hide the form1 ? I want that the icon of the form only will be show in the taskbar in the bottom 如何在任务栏上显示应用程序? - How to Show the application on taskbar? 如何在任务栏中的图标上添加点击事件? - How do i add a click event on an icon in the taskbar? 如何在 Visual Studio 2019 中添加任务栏图标? - How do i add icon for taskbar in Visual Studio 2019? 我的应用程序加载时如何显示图像 - How can i show an image while my application is loading 如何在C#中为任务栏图标设置数值? - How can I make a numerical value for a taskbar icon in C#? 我在Windows窗体应用程序中使用了MDI,它未在任务栏中显示应用程序图标 - I have used MDI in my Windows Form Application, it is not showing the application icon in taskbar 如何禁用或自定义当用户将鼠标悬停在任务栏上的应用程序图标上时显示的图像预览? - How can I disable or customize the image preview, which displays when a user hovers over an app's icon on the taskbar? 当用户打开应用程序两次时,如何避免任务栏按钮被合并到我的应用程序中? - How can I avoid that the taskbar buttons get combined for my application when the user opens it twice?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM