How to create buttons in taskbar menu Windows 7 C#?

a 夏天 提交于 2019-12-10 11:26:11

问题


How would I make buttons appear in the Windows 7 Taskbar like the image below has it setup?

http://i.stack.imgur.com/ZcH1z.png

How would I create buttons in the taskbar with tooltiptext on the button like the picture above?

C# Windows Form.

Thanks.


回答1:


You should look at the Windows API Code Pack, this will give you what you require.

The feature is called 'Thumbnail Toolbar'. There are some icons you can use on your buttons in the SystemIcons class.

ThumbnailToolbarButton infoButton = new ThumbnailToolbarButton(SystemIcons.Information, "Information");
infoButton.Click += delegate {
    // Action
};

TaskbarManager.Instance.ThumbnailToolbars.AddButtons(this.Handle, infoButton);


来源:https://stackoverflow.com/questions/5842938/how-to-create-buttons-in-taskbar-menu-windows-7-c

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