问题
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