I am creating a toolstrip and then adding a toolstripcombobox to it. My code so far is as follows:
Dim tsMenu As New ToolStrip tsMenu.Name = "tsMenu" tsMenu.Dock = DockStyle.Top tsMenu.Visible = True Dim tsComboBox As New ToolStripComboBox tsComboBox.Name = "tsComboBox" tsComboBox.Visible = True tsComboBox.Items.Add("Item 1") tsComboBox.Items.Add("Item 2") tsMenu.Items.Add(tsComboBox) Me.Controls.Add(tsMenu)
I can access the toolstrip. For example I can get the toolstrip name:
My question is how can I access the combobox, for example if I wanted to get the value of the combobox.
I hope I have managed to explain my problem.
Many thanks in advance,