windows toolbar dropdown button - post No2

I have posted my original question a while ago, and I thought I could implement TheGhost_k8's first suggestion with ease.

Here's my post I

I have developed a window app in vs2003. On this form I have a toolbar. One of the button is of dropdown style. As it is right now, mouse clicks on the main icon area of the button will do nothing. Only clicks to its arrow down area (the narrower strip on right side) will make the dropdown menu show.

And the answer:
"instead of making dropdown style button, create a simple button and onclickevent of that button make a Context-menu/Pop-up menu APPEAR"

However, how do I hook up my toolbar click on one button to the context menu?
Other control has this contextmenu property to let you assign a context menu, but to a toolbar, I don't want to assgin my whole toolbar to it.

Under my ToolBarButton Collection, I did not find a contextMenu property!

Just handle the event on the toolbar icon:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

Featured Post

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen. It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…

This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg).
If you're looking for how to monitor bandwidth using netflow or packet s…

When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.