trigger event on drop down menu from toolbar

  • Thread starter Thread starter Curtis
  • Start date Start date
C

Curtis

I have a toolbar and, at run time, putting on a dropdown control and adding
items. All is ok, but I don't know how to catch the click event. The items
are there on the drop down. They are created dynamically so I don't know
what they are at design time. How do I know when one of them have been
selected/clicked?
 
Hi

You can use the ButtonDropDown event of the toolbar class.

Sooraj
Microsoft Community Star
 
The buttondropdown event seems to trigger when the down arrow is clicked.
What triggers when an item on the list is clicked? Or maybe there is a
resource on this someone could suggest. I'm having trouble finding
documentation.

Review: I have added a button to a toolbar and made it's style dropdown. I
do this at design time (now). In the code I add items (contextmenu) since I
pull the items from a database. This all seems fine and the items show up
when i click the downarrow on the button. I can't figure out how to catch
the click on any one of the items on the list.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top