Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Marco Scarpa
|
Sep 24, 2010 - 3:41 AM
|
Hi, i have a dropdown button. I have to add item (button) to it at runtime. How can i do it? Thanks Bye Marco
|
|
Technical Support
|
Sep 25, 2010 - 4:31 AM
|
You can use the DropDown.Popup property as follows: PopupMenu menu = dropDown1.Popup as PopupMenu;
if (menu == null)
menu = new PopupMenu(dropDown1);
Button openFileButton = new Button();
openFileButton.Text = "&Open";
openFileButton.Click += openFile_Click;
menu.Items.Add(openFileButton);
|
|