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.
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);
精彩评论