473,396 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

trigger event on drop down menu from toolbar

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?
Nov 21 '05 #1
2 1929
Hi

You can use the ButtonDropDown event of the toolbar class.

Sooraj
Microsoft Community Star

"Curtis" wrote:
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?

Nov 21 '05 #2
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.

"Sooraj PM" <So******@discussions.microsoft.com> wrote in message
news:5E**********************************@microsof t.com...
Hi

You can use the ButtonDropDown event of the toolbar class.

Sooraj
Microsoft Community Star

"Curtis" wrote:
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?

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Andy Munnis | last post by:
Need help with creating a drop down menu. I am trying to replicate the GUI of a large db application that runs on large Sun servers using Oracle/Solaris, etc. My purpose is to create a stand-alone...
7
by: Girish | last post by:
OK.. phew. Playing with data grids for the past few days has been fun and a huge learning experience.. My problem. I have a requirement to display a gird with a gird. Within the embedded grid,...
1
by: Sujoan | last post by:
Hi, I would like to add a button with drop down menu to standard toolbar in internet explorer(like the mail button). Is it possible to do that using C#? Please somebody give some information on...
6
by: Joseph Geretz | last post by:
Writing an Outlook AddIn with C#. For the user interface within Outlook I'm adding matching pairs of Toolbar buttons and Menu items. All of the buttons and menu items are wired up to send events to...
6
by: Joseph Geretz | last post by:
I'm porting a C# Outlook Addin originally engineered as a COM Addin over to use VSTO. I've gotten this to the point where my VSTO Addin installs its Menu items and Toolbar buttons when Outlook...
0
by: enantiomer | last post by:
Having a problem with visual studio 2005 doing ASP.net. when in source mode (i.e. looking at the html directly), in the properties toolbar is an option called "DOCUMENT". It has some basic...
5
by: jaysonnward | last post by:
Hello All: I've recently been recreating some 'dropdown menus' for a website I manage. I'm writing all my event handlers into my .js file. I've got the coding to work in Firefox, but the...
3
by: lord.zoltar | last post by:
I've managed to get a nice little chm help system written. Now I need to display it! I added a HelpProvider to my MDIParent form and set the namespace of the HelpProvider to be the help file. So...
2
by: ConieFL | last post by:
I have and excel spreadsheet with a custom toolbar. On the end of the custom tool bar is a down arrow for a pull down menu which displays 'Add or Remove Buttons' Is there a way not to display...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.