This tag can be used in questions involving usage of MenuStrip class from Windows Forms (a GUI class library in the Microsoft .NET Framework).
Questions tagged [menustrip]
255 questions
3
votes
2 answers
prevent menustrip from being selected by pressing alt
I would like to have some shortcuts with alt but when I press alt the menustrip gets selected. How can I disable this behaviour?

DaVinci
- 1,391
- 2
- 12
- 27
3
votes
1 answer
remove ToolStripMenuItem from parent forms MenuStrip
I have been working on a little project and basically it is a parent form that has a child from with Tab Controls inside. When i change tab it adds the relevant options for that tab to the parents menu strip.
What i would like to do is, instead of…

Pete
- 469
- 7
- 18
3
votes
2 answers
Can I use MenuStrip as ContextMenu?
Hi Ladies and Gentlemans!
I have a MenuStrip and want to have a ContextMenu with same structure.
Can I use my MenuStrip as ContextMenu, or quick create ContextMenu with DataSource from MenuStrip?
Thanks!

Yuriy
- 2,670
- 6
- 33
- 48
3
votes
2 answers
Preferred menus for C# application
Which of the menu tools do you use for C# windows applications? I began with MainMenu, but when I moved to VS2005, only MenuStrip appeared in the Toolbox, so I assumed it was new and better. However, the merge/replace action seems to require a lot…

SeaDrive
- 4,182
- 5
- 32
- 30
3
votes
1 answer
Disable ToolStripMenuItem highlight?
I have an application with a MenuStrip and every time I hover my mouse over a MenuItem, it highlights blue.
I have tried to change the BackColor and ForeColor but that wasn't the problem.
Is there a way to disable this?

number27
- 93
- 1
- 3
- 8
3
votes
2 answers
"Tool tip" covered by ToolStripItems if they have dropdown items?
In Windows Forms - if the dropdown items of a MenuStrip has tooltips and dropdown items themselves the tooltip will have about a 50% chance of showing up below the ToolStripItems.
What is the workaround?
To repro you can create the MenuStrip in…

Fox-Connely
- 101
- 1
- 6
3
votes
0 answers
How to change the background color of a menustripitem in winforms?
Hello
This picture sums it up:
Got some troubles, couldn't find a proper answer using the search bar. I've tried to use a custom Render, but it is always just for professional render, when I'm using System Render for the menustrip.
Edit: Found out…

user3550499
- 31
- 1
- 3
3
votes
1 answer
Change the dropdown menu list item square
I coulnd find a proper name and phrase for this to explain, so here's a picture:
I'd like to change the white area's as shown above in the red circle to a desired color. I used the code below to change the other colors:
In the form…

Nick Peelman
- 585
- 1
- 10
- 28
3
votes
3 answers
How do I change a menuStrip menu text from child window?
I need to change a menuStrip item text of the main window (mdi container) from a child window,
something like this:
File
-Login
to
File
-Logout

Zar
- 67
- 1
- 9
2
votes
2 answers
Event when a menu item is highlighted
Has anyone figured out an event that fires whenever a menu item is highlighted?
I would like to display a description of each menu command in the status bar as they are highlighted. I'd like this to happen whether they are highlighted using the…

Jonathan Wood
- 65,341
- 71
- 269
- 466
2
votes
1 answer
Windows Forms | MenuStrip Sub-Items (ToolStripMenuItem) changing Cursor won't work
I want to have a Hand Cursor for all ToolStripMenuItems.
So i change it in the MouseEnter and MouseLeave Events with this.Cursor = Cursors.Hand; & this.Cursor = Cursors.Default;. I've disabled latter for debugging purpose, so i can see if it changes…

Taki7o7
- 197
- 2
- 11
2
votes
1 answer
Delaying opening of sub-menus in a menustrip
Our environment: Visual Studio 2010, c#, .net 4 client profile.
We have a Winforms application that contains a menustrip in its main form. The items of the menustrip contain both an image (64x64) and text. The main form also has a TabControl which…

SomethingBetter
- 1,294
- 3
- 16
- 32
2
votes
2 answers
DatetimePicker and other Controls in MenuStrip
I know I can add a DateTimePicker to my MenuStrip with the following lines
Dim dp = New ToolStripControlHost(New DateTimePicker)
MenuStrip1.Items.Add(dp)
But I can't figure out how to add a DateTimePicker to the MenuStrip at designtime. What's…

Luke
- 751
- 2
- 7
- 32
2
votes
1 answer
C# assign click action for dynamic menuStrip items
I'm building a program that relies on reading the SerialPorts available on a system and populating a menuStrip item. I've been able to populate the menuStrip submenu but I am stuck on how to add a click event to the dynamically filled in list. My…

Alex
- 83
- 2
- 7
2
votes
2 answers
How to set hotkey shortcut "Ctrl + Plus Sign"
I need to set shortcut Ctrl + "Plus Sign" for one of the MenuStrip menu item.
I prefer to set it NOT programmatically to have an help text block in the right side of menu item:
But I do not see there such variant to choose. Closest is "OemPlus"

Andrew_STOP_RU_WAR_IN_UA
- 9,318
- 5
- 65
- 101