Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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 I don't know keeps me excited...
Posted

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?

UCM

>-)

Posted

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.

What I don't know keeps me excited...
  • *Gurus*
Posted (edited)

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.

Edited by divil

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...