We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to custom draw ControlItem and use it in the ToolStripDropDownButton?

You can customize the appearance of the ControlItem by following the steps.

  1. Create the custom ControlItem class that is inherited from the ControlItem.
  2. Customize according to the requirement.
  3. Add it as child of the ToolStripDropDown button dropdown.

 

The following code example demonstrates the same.

C#

 

VB

 

Note: In the ToolStripDropDownbutton, the ToolStripMenuItem is added to its item, by default.

 

Figure 1: ToolStripDropDown item customized by using the ControlItem

Sample Links:

C#: RibbonGallary_ControlItem_C#

VB: RibbonGallary_ControlItem_VB

Article ID: Published Date: Last Revised Date: Platform: Control:
5455 09/29/2015 09/29/2015 Windows Forms RibbonControlAdv
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.