Category / Section
How to display custom controls inside the ToolStripDropDownButton in ToolStripEx?
1 min read
Display custom controls
Custom controls can be displayed inside ToolStripDropDownButton in ToolStripEx using ToolStripControlHost class.
C#
//Adding controls to ToolStripEx toolStripDropDownDotNet.Items.Add (new ToolStripControlHost (new DTPWithDotNet ()));
VB
‘Adding controls to ToolStripEx toolStripDropDownDotNet.Items.Add (New ToolStripControlHost (New DTPWithDotNet ()))