开发者

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

开发者 https://www.devze.com 2023-03-02 12:45 出处:网络
How would I开发者_运维知识库 make buttons appear in the Windows 7 Taskbar like the image below has it setup?

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 to create buttons in taskbar menu Windows 7 C#?

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

C# Windows Form.

Thanks.


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);
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号