新手求助,实现win7任务栏缩略图显示Thumbnail和上一首下一首 按键控制
要做一个MP3播放器,实现win7任务栏上 可以缩略图显示Thumbnail 和上一首 下一首 按键控制private void Form1_Shown(object sender, EventArgs e)//缩略图显示框上的Button
{
buttonNext = new ThumbnailButton(Properties.Resources.nextArrow, "Next");
buttonNext.Enabled = true;
buttonNext.Click += new EventHandler<ThumbnailButtonClickedEventArgs>(buttonNext_Click);
buttonPrevious = new ThumbnailButton(Properties.Resources.prevArrow, "Previous");
buttonPrevious.Click += new EventHandler<ThumbnailButtonClickedEventArgs>(buttonPrevious_Click);
TaskbarWindowManager.Instance.ThumbnailToolbars.AddButtons(this.Handle, buttonPrevious, buttonPlayPause, buttonNext);
TaskbarWindowManager.Instance.TabbedThumbnail.SetThumbnailClip(this.Handle, new Rectangle(albumart.Location, albumart.Size));
}
总是报错:
“buttonNext_Click”的重载均与委托“System.EventHandler<ThumbnailButtonClickedEventArgs>”不匹配
未能找到类型或命名空间名称“ThumbnailButtonClickedEventArgs”(是否缺少 using 指令或程序集引用?)
PS:我已经引用了
using Microsoft.WindowsAPICodePack.Taskbar;
using Microsoft.WindowsAPICodePack.Shell;
补充:.NET技术 , C#