This is .net framework class which provides a container for Windows toolbar objects. This is used in creating toolbars in Winform application.
Questions tagged [toolstrip]
288 questions
2
votes
4 answers
WinForms : how to add toolStrip to a form already divided into left/right panes using a SplitContainer control
My form is divided up into left and right panes, and the right pane is split into upper and lower panes:
AAAABBBB
AAAACCCC
There's a menu-strip at the top, below the title-bar and a status bar at the bottom:
menuStrip
…

Tim
- 5,371
- 3
- 32
- 41
2
votes
2 answers
C# Toolstrip Causes Supporting Form to Grow
I've rewritten a toolbar that sits at the top of the user's screen. It works, but for some reason, though the app consists of just a form with a Fill-Docked ToolStrip, I cannot get it to stay at the size I specify. It's supposed to be the size of…

Gargravarr
- 635
- 2
- 10
- 18
2
votes
1 answer
ToolStripLabel not updated with application settings using PropertyBinding
I probably have a very simple problem, but could not find a solution. I have a problem with the property binding to a ToolStripLabel. A Label is bound to COM port value in App.Config.
If I bind the property for a System.Windows.Forms.Label label,…

Sasha
- 23
- 5
2
votes
4 answers
Getting the Text of ToolstripItem in a ContextMenuStrip
I have a contextmenustrip for a DGV. It has a toolstripitem called "ChangeTo" and this branches out into a set of items that are created dynamically based on the config file used. When I run the program that Has Rt-Click -> Change To -> (List of…

techmanc
- 293
- 1
- 7
- 19
2
votes
1 answer
Select ComboBox in Windows Forms ToolStrip
I have a problem focusing a ComboBox in a Windowsforms "ToolStrip" (C++ Cli).
I used the Designer to create a ToolStrip in my form and added a ComboBox (System.Windows.Forms.ToolStripComboBox) and it is visible and enabled.
When the form is loaded I…

Zeus
- 123
- 1
- 6
2
votes
1 answer
How do I paint a hosted NumericUpDown using the existing ToolStripRenderer?
I have a control which hosts a NumericUpDown in a ToolStripControlHost and exposes the NumericUpDown's properties. Functionally, that's fine, but when it's placed on a ToolStrip it doesn't fit visually with the other ToolStripItems.
I'd like to use…

Simon
- 25,468
- 44
- 152
- 266
2
votes
2 answers
Change ToolStripPanel overflow behavior for dynamically added ToolStripItems
I have a Windows Forms ToolStripPanel that I dynamically add new ToolStrips to it. Each ToolStrip has ToolStripItems that I dynamically add to it (mostly ToolStripButtons).
I would like to have all the ToolStrips fit on one row as long as you can…

Jeff Moser
- 19,727
- 6
- 65
- 85
2
votes
1 answer
toolStripTextBox action on Enter
In a C# Winforms application, I am using a "toolStripTextBox" toolstrip control to capture some text that is to be used to filter some other content on the form.
The "toolStripTextBox" is selected from a "toolStripSplitButton".
The user can activate…

BENBUN Coder
- 4,801
- 7
- 52
- 89
2
votes
1 answer
Setting a ToolStripLabel in a thread-safe manner
I have a ToolStripLabel that needs to have its Text property updated from an event handler on a separate thread. Normally with a regular Label I've been using the InvokeRequired property and invoking a delegate to do the work if InvokeRequired…

Joel B
- 12,082
- 10
- 61
- 69
2
votes
1 answer
How to disable ToolStripMenuItem in Context menu Dynamically?
In my windows application i have a context menu with a grid the problem is that I want to disable the ToolStripMenuItem in context menu according to the user previlages.How can i do that. i have done like this but it is not working
private void…

Nighil
- 4,099
- 7
- 30
- 56
2
votes
1 answer
Hide ImageMargin and CheckMargin in ToolStripDropDownMenu
I'm trying to set the ImageMargin and CheckMargin properties in every ToolSTripDropDownMenu within a certain ToolStrip.
foreach (ToolStripDropDownButton tsd in toolStrip1.Items)
{
((ToolStripDropDownMenu)tsd.DropDown).ShowImageMargin = false;
…

user
- 16,429
- 28
- 80
- 97
2
votes
1 answer
C# - Convert MenuStrip code to ToolStrip
I am trying to convert code that was originally meant for a MenuStrip to something that will work with a ToolStrip. In short, a MenuItem is passed on to Init() and I need to determine what the parent is of the menu item in question. This snippet…

user
- 16,429
- 28
- 80
- 97
2
votes
1 answer
Show Image for ToolStripControlHost in drop down menu
I have a ToolStripSplitButton with various elements in dropdown list.
One of them is a Trackbar enclosed in a ToolStripControlHost, called ToolStripTrackbarItem. It's code (I've got it from stackoverflow):
using System;
using…

Feri
- 461
- 4
- 12
2
votes
2 answers
WinForms Toolstip Items Size-To-Fit
I am using a Toolstrip to draw myself a TabStrip where I do not want the items to overflow, but rather shrink-to-fit the available width. Very much like many browsers tabs behave (ex. Chrome).
I know there is a LayoutEngine property which can be…

Lars KJ
- 632
- 7
- 15
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