本文介绍了C#在任务栏缩略图上显示按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在WMP中,任务栏缩略图上显示了按钮.如何在C#中为Winforms应用制作它们?
In WMP, I have been shown buttons on the taskbar thumbnail. How can I make them for my winforms app in C#?
推荐答案
WindowsAPICodePack 包含一个名为 ThumbnailToolBarButton 的控件,您可以使用该控件来实现此功能.
The WindowsAPICodePack contains a control called ThumbnailToolBarButton that you can use to get this functionality going.
您需要确保每个按钮都有图标(因为我不相信您可以在它们上面放文本),然后只需创建一个新控件并添加相关的事件处理程序就可以了.
You'll need to make sure you have icons for each of the buttons (as I don't believe you can put text on them), and then it should be a simple matter of creating new controls and adding relevant event handlers.
来自此处.
更多推荐
C#在任务栏缩略图上显示按钮
发布评论