sethindeed Posted February 19, 2003 Posted February 19, 2003 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 ? Quote What I don't know keeps me excited...
UCM Posted February 19, 2003 Posted February 19, 2003 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? Quote UCM >-)
sethindeed Posted February 20, 2003 Author Posted February 20, 2003 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. Quote What I don't know keeps me excited...
*Gurus* divil Posted February 20, 2003 *Gurus* Posted February 20, 2003 (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 March 4, 2003 by divil Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.