Getting Started with WinForms DropDownButton
You can add RadDropDownButton either at design time or at run time:
Design Time
- To add a RadDropDownButton to your form, drag a RadDropDownButton from the toolbox onto the surface of the form designer.
- Like a standard button, you can control the displayed text by setting the Text property.
- Unlike a standard button, RadDropDownButton displays drop-down items when clicked. So handling the Click event of this button is not appropriate. Instead, work directly with the events for each item.
Run Time
To programmatically add a RadDropDownButton to a form, create a new instance of a RadDropDownButton, and add it to the form Controls collection.
Adding a RadButton at runtime
Similarly, you can create item hierarchies in code by adding new RadMenuItem objects to the Items collection of your existing RadMenuItem.
Adding sub items
Displaying Images with Items
You can display images and text on your menu items.
To add an image to your menu item, click in the Image property of the RadMenuItem, and then click the ellipsis button to launch the Select Resource dialog. From this dialog you can select an image file from a project resource file or from an image resource on your local hard drive.
Using the Click Event
To handle the Click event of individual RadMenuItems on the drop down menu at Design Time, locate the RadMenuItem in the drop down list in the Properties window of the Windows Form designer. Click the events button, then double-click the Click event to generate an event handler. Then fill in your event-handling code.
Telerik UI for WinForms Learning Resources
- Telerik UI for WinForms DropDownButton Component
- Getting Started with Telerik UI for WinForms Components
- Telerik UI for WinForms Setup
- Telerik UI for WinForms Application Modernization
- Telerik UI for WinForms Visual Studio Templates
- Deploy Telerik UI for WinForms Applications
- Telerik UI for WinForms Virtual Classroom(Training Courses for Registered Users)
- Telerik UI for WinForms License Agreement)