Questions tagged [toolstripdropdown]
75 questions
1
vote
2 answers
WinForms User Control has ComboBox that causes ToolStripDropDown to auto-close
I have a custom WinForms user control that looks like a combobox but instead opens a ToolStripDropDown that contains another custom user control, called NumericFilterPanel, that has a checkbox, a combobox, and a textbox.
The problem is that when…

gotorg
- 147
- 1
- 10
1
vote
1 answer
MenuItem AutoClose = false on dynamically generated Toolstrip Menu
So, following this question, I have been attempting to deal with a way to stop a drop down menu from closing when I click on an item.
In the linked question, one such answer suggested that I set the AutoClose property to false. I did so, and this…

Ben
- 2,433
- 5
- 39
- 69
1
vote
3 answers
required attribute not working with primeng
I am working on a angular2 App and I am using primeng for UI elements. I have dropdowns where I am using the options in these dropdowns are dynamically generated from an API call. Now, when I click the submit button, I want it to validate the forms…

curious_debugger
- 299
- 2
- 8
- 23
1
vote
2 answers
ToolStripDropDownButton, how to remove all DropDownItems?
How to remove all DropDownItems from a ToolStripDropDownButton, if its propery is read only?

gremo
- 47,186
- 75
- 257
- 421
1
vote
1 answer
Close ToolStripMenuItem when mouse leaves ToolStripMenuItems
I am new to windows Forms so I am wondering what the best approach to my problem is.
I want the ToolStripMenuItems of the ToolStripDropDownMenu to close only when the user's mouse leaves the area containing them (All the…

Anton James
- 385
- 3
- 6
- 18
1
vote
1 answer
How to set a ToolStripMenuItem Visible in code?
I have some code in Windows Forms application.
I want to change the visibility of my drop down ToolStripMenuItems in code.
I set the Visible property, but when I set a breakpoint and inspect the property value, the visibility of the items has not…

Mahsa
- 477
- 1
- 5
- 9
1
vote
2 answers
Finding sub menu item
I've got a Windows Forms menu bar, with one menu item. Below that is 1 Sub Item.
Let's say File → Open.
I'm trying to get a reference to the sub menu, but it is giving me a hard time.
ToolStripItem main = menuMain.Items["File"]; //This is…

Cameron Castillo
- 2,712
- 10
- 47
- 77
1
vote
1 answer
Get the (ToolStrip) parent of a ToolStripDropDownMenu
I am writing a custom ToolStripProfessionalRenderer
Take for example, the following override:
protected override void OnRenderImageMargin(ToolStripRenderEventArgs e)
{
if(e.ToolStrip is MenuStrip)
{
// It never is. It's always…

Matthew Layton
- 39,871
- 52
- 185
- 313
1
vote
0 answers
Transparent Popup for winforms
I'm trying to show a popup when clicking on a cell in a grid. The popup has a usercontrol which contains an Element Host. I'm trying to make the popup transparent so I can see whats on the grid beneath but it doesn't seem to work. I'm using a…

gatordude
- 69
- 3
- 8
1
vote
1 answer
Cant load image in context menu as icon
I am trying to use the code from the following link:
VB- Helper Create menu items at run time with images, shortcut keys, and event handlers in Visual Basic .NET
The only difference is that I want a local image and not one from my.Recources
What I…

Argon
- 221
- 5
- 14
1
vote
2 answers
WinForms context menu really slow adding 150 Toolstrip Menu Items
I have this code that add items to a context menu's sub-menu:
CTX_VALUE.Enabled = True
CTX_VALUE.Visible = True
CTX_VALUE.Text = "List Values"
For k As Integer = 0 To CELL.VALUE_LIST.Count - 1
…

Teejay
- 7,210
- 10
- 45
- 76
1
vote
1 answer
ToolStripDropDown loses mouse autoclose
Not sure how to explain this, but:
there is a control MyPopup, made out of ToolStripDropDown;
there are many based on MyPopup controls (call them popups);
there are no problems to open popup from the Form;
but there is is a problem to open popup…

Sinatr
- 20,892
- 15
- 90
- 319
1
vote
0 answers
ToolstripControlHost causes toolstrip to not disappear when the program execution is paused
I am trying to build a custom WinForms ToolStripDropDownMenu. I need custom menu items so I am using ToolStripControlHosts. The problem is that when the menu is open and I hit a breakpoint the menu does not disappear and stays on top of all…

Tamas Pataky
- 353
- 4
- 16
1
vote
1 answer
Horizontal Separator for ToolStripDropDown list
I'm creating a ToolStripDropDownButton with three ToolStripButtons. And I want to add a Separator after the second button.
Here's the code I have.
using System;
using System.Drawing;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
…

Isuru
- 30,617
- 60
- 187
- 303
1
vote
1 answer
Capture mouse messages when a ToolStripDropDown is shown
I am trying to create a "tooltip" which contains a custom control. I implemented it using ToolStripDropDown which does what I need - closes when the user clicks somewhere else, or activates another window etc.
However, I'd like to be able to get the…

crypto_rsa
- 341
- 1
- 12