![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Why wasn't the toolbar, menu bar items developed as a single BarItem and then allowed us to build as Toolbar or a MenuBar. This way I could just have one click event. I do have in my code in a method for say a toolbarItem click.. But when I add the same to a menu, I have to attach a item click event and call the method. If it was developed as a single BarItem, life would have been easier. Any reason why it is not done so? Vijay |
#3
| |||
| |||
|
|
I believe you can do this with one event handler: Private Sub MenuOrTool_Click(ByVal sender As Object, ByVal e As EventArgs) _ Handles MenuItem.Click, ToolStripItem.Click ... End Sub Tony "Vijay" wrote: Why wasn't the toolbar, menu bar items developed as a single BarItem and then allowed us to build as Toolbar or a MenuBar. This way I could just have one click event. I do have in my code in a method for say a toolbarItem click.. But when I add the same to a menu, I have to attach a item click event and call the method. If it was developed as a single BarItem, life would have been easier. Any reason why it is not done so? Vijay |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |