Toolbox with contextual menu

sethindeed

Centurion
Joined
Dec 31, 1969
Messages
118
Location
Montreal Canada
Just to be sure :
To use the toolbox control included in net, I have to store each icon in a imagelist control and create a contextual menu based on my main menu.
Then, I will be able to link my button to the contextual menu.
Am I missing something ?
 
what exactly are you wanting to do?

are you wanting to add a context menu to each button so that when the user right-clicks a button, a menu will come up?
 
No.
I only want to easily manage my toolbar buttons.
Because at first glance, it seems impossible to directly relate a button to a menu item. The language asks for a contextual menu as reference.
 
You're right. The context menu property is a red herring, you should ignore it. There is no way to relate a toolbar button to a menu item with the .net toolbar, you have to write code to associate them, i.e. call the menu's PerformClick() method in a switch or Select Case statement based on what button was clicked.

In case you're interested, I developed a toolbar component which _does_ have this functionality. You can find it at this location.
 
Last edited:
Back
Top