Questions tagged [toolstripdropdown]
75 questions
10
votes
2 answers
Windows Forms - ToolStripItem Visible property is always set to false
I'm working on a MDI Windows Forms application. My parent form has ToolStrip menu and some ToolStripDropDownButtons. I want to change the Visible property of the ToolStripDropDownButton or to some of the ToolStripItems (sub buttons) that it has…

Leron
- 9,546
- 35
- 156
- 257
10
votes
5 answers
Check only one ToolStripMenuItem
I have a ToolStrip with multiple ToolStripDropDownButtons, each has a set of DropDownItems.
When the user clicks on an DropDownItem, the check mark is shown.
By default, multiple items can be clicked and therefore multiple check marks appear.
What…

Isuru
- 30,617
- 60
- 187
- 303
6
votes
3 answers
How to sort items in ToolStripItemCollection?
I add strings (items) dynamically to a ToolStripItemCollection by:
Dim onClickHandler As System.EventHandler = New System.EventHandler(AddressOf Symbol_Click)
Dim item As New ToolStripMenuItem(newSymbol, Nothing,…

bretddog
- 5,411
- 11
- 63
- 111
5
votes
1 answer
Can the VS "cascading style sheet version for validation" default be changed?
In reference to these related questions, I have had CSS3 validation set up in VS2010 for a while.
However each time I close a CSS file, the "cascading style sheet version for validation" dropdown in the css toolstrip changes back from CSS 3.0 to…

danludwig
- 46,965
- 25
- 159
- 237
5
votes
4 answers
Prevent ToolStripMenuItems from jumping to second screen
I have an application that is mostly operated through NotifyIcon's ContextMenuStrip
There are multiple levels of ToolStripMenuItems and the user can go through them.
The problem is, that when the user has two screen, the MenuItems jump to second…

atlanteh
- 5,615
- 2
- 33
- 54
4
votes
1 answer
ToolStripSplitButton behavior override
I'm trying to understand what do I have to do to override the behavior of the ToolStripDropDown control on System.Windows.Forms where if you use this constructor:
var button = new ToolStripSplitButton("text","path to image",…

Román
- 1,943
- 2
- 18
- 28
4
votes
1 answer
C# Winfoms Toolstripdropdown close on button click
I have used toolstripdropdown in my Windows form to show list of buttons on click of another button.
var td = new ToolStripDropDown
{
AutoSize = true,
DropShadowEnabled = false,
BackColor =…

Rocky
- 405
- 7
- 17
4
votes
3 answers
Disable selection and drop down symbol of a tool strip drop down button
Is there a way to prevent a tool strip drop down button from being selected (without disabling it)?
I see it has a property called CanSelect, but it's read-only.
As for my second question related to this control:
Is there a way to hide the drop down…

IneedHelp
- 1,630
- 1
- 27
- 58
3
votes
1 answer
ToolStripDropDownButton equivalent in WPF?
I'm very newbie to the WPF technology. I've been developing in WinForms for around 6 years.
Now I would like to advance one big step in my skills by learning WPF. I'm reading the introduction guides in MSDN, while as a personal exercise I'm trying…

ElektroStudios
- 19,105
- 33
- 200
- 417
3
votes
2 answers
How to scroll in a fixed-size ToolStripDropDown
I am using a ToolStripDropDown control to implement the dropdown portion of a custom ComboBox-like control. In order to be visually appealing, I am imposing a MaximumSize on the dropdown and manually specifying the width of each ToolStripButton…

Bradley Smith
- 13,353
- 4
- 44
- 57
3
votes
1 answer
Don't close ToolStripDropDownButton on subitem Checked
I have a ToolStripDropDownButton where the subitems have CheckOnClick enabled.
I want to give the user the ability to pick more than one item before closing the drop down, but I can't find a way of doing that without setting AutoClose to false and…

JohnUbuntu
- 699
- 6
- 19
3
votes
1 answer
"Pin" control over items in ToolstripMenu
First, a little overview of how my current UI looks like:
Note that other than the stuff in the ToolStripControlHost, everything else is standard WinForms.
In short, I want to have something similar to the ToolStripControlHost but I need it…

Christian
- 27,509
- 17
- 111
- 155
3
votes
2 answers
How to change backcolor of an open ToolStripDropDownButton?
I need to change back-color of a ToolStripDropDownButton when its drop-down is opened. How can I do it?
I tried to inherit a class from the ToolStripProfessionalRenderer and then override the OnRenderDropDownButtonBackground, but it only affects…

Mehdi
- 2,194
- 2
- 25
- 39
2
votes
0 answers
ToolStripControlHost stays always at top (C# window forms)
I built a form, in this form i built a ToolStripControlHost:
ToolStripDropDown popup = new ToolStripDropDown();
popup.AutoClose = false;
popup.Margin = Padding.Empty;
popup.Padding = Padding.Empty;
ToolStripControlHost host = new…

user1012753
- 43
- 5
2
votes
1 answer
Owner-Drawn ToolStripDropDownButton
I'm writing some custom behavior for a ToolStripDropDown control. I'd also like to modify the ToolStripDropDownButton itself to display a colored shape.
I see that I can handle the Paint event and draw whatever I like. However, is there any way to…

Jonathan Wood
- 65,341
- 71
- 269
- 466