Category / Section
How to add the ToolStripItems on a single row in ToolStripEx?
1 min read
You can display the ToolStripEx item in a single row by using RowCount property of the ToolStripPanelItem. The following code example demonstrates the same.
C#
//Adding Label and ComboBox in ToolStripPanelItem
this.toolStripPanelItem1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.toolStripLabel1,
this.toolStripComboBox1});
//To add the items in single row
this.toolStripPanelItem1.RowCount = 1;
VB
Adding Label and ComboBox in ToolStripPanelItem
Me.toolStripPanelItem1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.toolStripLabel1, Me.toolStripComboBox1})
'To add the items in single row
Me.toolStripPanelItem1.RowCount = 1
The following screenshot illustrates the ToolStrip items added in a single row.

Figure 1: ToolStrip items added in a single row
Sample:
https://www.syncfusion.com/downloads/support/directtrac/general/RibbonControlAdvSample525905381.zip