G
genc ymeri
Hi,
I'm trying to call an menuItem_onClick() method from toolbar_Buttonclick
event but it doesn't compile :
I'm doing something like this :
private void tlbMain_ButtonClick(object sender,
System.Windows.Forms.ToolBarButtonClickEventArgs e)
{
mainFormMenu.MenuItems[aIntVariable].Click();
//(725): The event 'System.Windows.Forms.MenuItem.Click' can only appear on
the left hand side of += or -=
//how can I call the above method from toolbar_ButtonClick ?
}
Thank You.
I'm trying to call an menuItem_onClick() method from toolbar_Buttonclick
event but it doesn't compile :
I'm doing something like this :
private void tlbMain_ButtonClick(object sender,
System.Windows.Forms.ToolBarButtonClickEventArgs e)
{
mainFormMenu.MenuItems[aIntVariable].Click();
//(725): The event 'System.Windows.Forms.MenuItem.Click' can only appear on
the left hand side of += or -=
//how can I call the above method from toolbar_ButtonClick ?
}
Thank You.