ToolStripComboBox is a version of ComboBox that is hosted in a ToolStrip. Like ComboBox, it allows to select only one option out of several, or to edit the text displayed (combination of TextBox and Listbox). The main difference between ToolStripComboBox and ComboBox is that the first is usable as an element of a ToolStrip.
Questions tagged [toolstripcombobox]
16 questions
6
votes
3 answers
How to make a ToolStripComboBox to fill all the space available on a ToolStrip?
A ToolStripComboBox is placed after a ToolStripButton and is folowed by another one, which is right-aligned. How do I best set up the ToolStripComboBox to always adjust its length to fill all the space available between the preceeding and the…

Ivan
- 63,011
- 101
- 250
- 382
4
votes
2 answers
How to prevent Mouse Scroll in ToolStripComboBox?
I am trying to disable Mouse Scroll in my ToolStripComboBox, I thought I can catch the Mouse Wheel event, but while the event is available for ComboBox, it is not available instead for the ToolStripComboBox. Any ideas?

raz3r
- 3,071
- 8
- 44
- 66
2
votes
3 answers
ToolStripCombobox displays at the top left corner of the screen when DropDownStyle is Simple
I have a ToolStripCombobox that when I set its DropDownStyle to Simple. The first time which I open the menu, it displays at the top left corner of the screen.
However, when I select the same item for the second time, it displays in the correct…

Pucho
- 370
- 2
- 20
2
votes
2 answers
ToolStripComboBox -- autosize to items
I have a ToolStrip with a ToolStripComboBox control on it, and I would like it to autosize to fit the widest item in the drop down list. How can I accomplish that? The "Autosize" property is set to "true", but it doesn't seem to be making any…

gillonba
- 897
- 9
- 24
2
votes
1 answer
Retrieve value from toolStripComboBox
I have created a toolStripComboBox and retrieve all the item list selection from the database something like this:
private void toolStripComboBox1_Click(object sender, EventArgs e)
{
toolStripComboBox1.ComboBox.ValueMember = "month";
…

Ren
- 765
- 4
- 15
- 42
1
vote
1 answer
How to change the background color of ToolStripItems?
When I add a ToolStripMenuItem to a ContextMenuStrip and then add a ToolStripComboBox in it, the background color under the ToolStripComboBox isn't blue. However, as you can see it's blue under 'Sub opt2' (which is in the main options of…

David Fields
- 157
- 8
1
vote
0 answers
WinForm rendering changes when myTableAdapter.Fill() is loaded and display font is 150%
I have this form that I've been trying to make it work on a display setting set to 150% (Windows 7):
I discover that when I comment out "myTableAdapter.Fill();" it works perfectly fine.
private void Form_Load(object sender, EventArgs e)
{
…

Pucho
- 370
- 2
- 20
1
vote
1 answer
Customized Autosearch of ToolStripCombobox in Visual C++
I want to implement a toolstripcombobox that that acts like autocompletemode is set to suggest.
I didn't set the autocomplete mode since it only finds prefix identical items.
What I want is that it can also find items in the combobox that has a…

catzilla
- 1,901
- 18
- 31
1
vote
1 answer
Get source control of a clicked contextmenu combobox
I'm trying to grab the control that generated the context menu, as there will be several listview's using the same context menu.
I've done this before, but it appears to have gotten 1000x more complicated now I'm using an embedded combobox in the…

user1830285
- 578
- 8
- 24
1
vote
1 answer
Set empty 'Start-Text' for ToolStripComboBox with DataSource
I have a ToolStripComboBox which is bound to a List. I'd like to set the visible text after initialization to String.Empty.
The problem is, that whatever I do, the text after initializing the control is always the first entry of my List…

user1567896
- 2,398
- 2
- 26
- 43
1
vote
1 answer
Filling a TableAdapter from Bound ToolStripComboBox
I am trying to fill a TableAdapter based on a selection from a ToolStripComboBox.
First I want to fill the ToolStipComboBox by binding it to a datasource. Then once it is filled, I want to fill the TableAdapter.
This is my code:
Private Sub…

Rico Strydom
- 537
- 1
- 6
- 26
0
votes
1 answer
Should not close the Menu of ToolStripCombobox
Avoid the closing of Menu in the ToolStripCombobox in the Windows application. when i select the items of the combo by using the UP/Down arrow keys the dropdown menu is closed automatically whenever the selection changed. How to avoid that auto…

Tanya
- 1,571
- 5
- 22
- 33
0
votes
1 answer
Handle tab key in ToolStripComboBox
I have a ToolStripComboBox in a ToolStrip, and when I press TAB key in it, it gives focus to the next toolstrip button. I would like to change this behavior and give focus to a richtextbox on my form instead.
The problem is that ToolStripComboBox…

Jiri
- 264
- 4
- 17
0
votes
1 answer
ToolStripComboBox.SelectedItem change does not propagate to binding source
My binding is set up as this:
_selectXAxisUnitViewModelBindingSource = new BindingSource();
_selectXAxisUnitViewModelBindingSource.DataSource = typeof(SelectXAxisUnitViewModel);
_selectedUnitComboBoxBindingSource = new…

Marius
- 9,208
- 8
- 50
- 73
0
votes
1 answer
ToolStripComboBox + objects default string value
I am using a ToolStripComboBox to list some data. I am populating this combo with some custom objects:
For Each obj As myObject In myObjectList
myToolStripComboBox.Items.Add(obj)
Next
This works great except the text displayed in the combo is…

Martin
- 39,569
- 20
- 99
- 130