把其中一个的事件指向另一个的事件,一一对应即可。
如菜单一的事件指向TOOLBAR BUTTON1的事件,或相反,那他们两就执行同一个事件。

解决方案 »

  1.   

    怎样能获得toolbar button的事件?!
      

  2.   

    private void toolBar1_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
    {
    switch(this.toolBar1.Buttons.IndexOf(e.Button))
    {
    case 0:
    方法1();
    break;
    case 1:
    方法2();
    break; }
    }
      

  3.   

    There is a good article from MSDN talking about this:http://msdn.microsoft.com/msdnmag/issues/02/10/CommandManagement/default.aspx