我在窗体中加了一个toolbar,在toolbar上有一些toolbarbutton。
我想在这些toolbarbutton上面加上一些tooltip。
this.toolTip1.SetToolTip(this.toolBar1,"Line");//对于整个toolbar可以实现,
this.toolTip1.SetToolTip(this.LineButton,"Line");//"LineButton"是一个toolbarbutton,这时候就会出错。
E:\Inetpub\wwwroot\Example1\Form1.cs(361): 参数“1” : 无法从“System.Windows.Forms.ToolBarButton”转换为“System.Windows.Forms.Control”
请问怎么解决。我用了很多定义的方式,都没办法实现转换。