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
2
votes
1 answer
Use escape key to lose focus on ToolStripMainMenu items?
I have a MenuStrip in one of my forms so that the user has a menu bar they can choose various things from. For convenience, some also have key shortcuts mapped to them. I've also achieved a custom look for all the items and their submenus by…

MattM
- 91
- 1
- 2
- 10
2
votes
2 answers
Change tool tip timeout on menustrip in winforms?
How to extend tool tip timeout when hovering on menu items in a menustrip (in winforms)?
I set it like this:
toolStripMenuItem1.ToolTipText = "foo";

BornToCode
- 9,495
- 9
- 66
- 83
2
votes
1 answer
MenuStrip in Visual Basic .NET
Can someone please explain to me why the hell? When I try to set a MenuStrip Item calling it by name it gives me an exception?
An unhandled exception of type 'System.NullReferenceException' occurred in Sample.exe
Additional information: Object…

mike
- 201
- 1
- 5
- 13
2
votes
2 answers
C# - Dynamically creating MenuStrip
I'm creating a web browser with tabs. To enter the URL, I'm trying to set a MenuStrip with its ToolStripMenuItem as a Textbox. I'm creating all the controls dynamically and I have 2 questions.
1). How can I insert a Textbox as the…

Isuru
- 30,617
- 60
- 187
- 303
1
vote
0 answers
Override MenuStrip.Items.Add()?
I have create a database tables which holds all the menu with a self join to make it like Level0 -> Level1 -> Level2 .....etc. Populating these records in a MenuStrip required a huge amount of code so i would like to encapsulate all this code on…

yahya kh
- 751
- 3
- 11
- 23
1
vote
2 answers
C# / WinForms / Make Main form's menu accessible from child form (shortcut keys)
I've got a form with a menu strip that has keyboard shortcut's.
Keyboard works as expected.
Then I add another form that is owned by the main form (child.Owner = main).
When this form has focus I can't access the menu on the main form (using the…

eq_
- 109
- 6
1
vote
2 answers
C#, menustrip specific menu open when user have logged in
in my menuStrip i have multiple forms,
So in 1 of them i want to be access only when use is pass from a login form i have create..
Lets say menustrip, menu is on form1, and the login form is Form2,
So how i am gonna comebine this to so menustrip…

dbexec
- 274
- 9
- 19
1
vote
3 answers
can't get value of trackbar on menu strip
I've added a trackbar to menu strip manually because vs 2008 doesn't allow me to do.
However, i can't get the value of trackbar.
Form1.cs:
[ToolStripItemDesignerAvailability(ToolStripItemDesignerAvailability.MenuStrip |
…

dum
- 228
- 2
- 4
- 17
1
vote
1 answer
How do I keep .NET 4.6.2 MenuStrip visible above application workspace (when programming in C#)
I have inherited some C# source code written in Visual Studio 2010 targeting the .NET 2.0 framework. It comprises a simple Windows Forms application with a single form as its user interface.
The form contains a number of menu items, one of which…

DB17
- 23
- 6
1
vote
0 answers
menustrip items disappeared but still avaliable on my designer.cs
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
…

bornemhu
- 41
- 8
1
vote
3 answers
Disabling a ToolStripMenuItem vs. disabling a MenuStrip.Item
When a user logs into my application, there are some menu items that I don't want every user to see. So I would like to either disable or make invisible the menu item. For example fileToolStripMenuItem is the first item in my menuStrip, when I…

Nick
- 1,903
- 2
- 21
- 40
1
vote
0 answers
C# Windows Forms ToolStrip and MenuStrip memory leak
I'm creating a Windows Forms app in C# (.NET 4.7.2), I just added a ToolStrip and a MenuStrip.
If I run the application the memory usage jumps to 600mb, too much for a Windows Forms application with only a ToolStrip and a MenuStrip, if I delete them…

Francesco Granozio
- 11
- 2
1
vote
1 answer
Trying to color a MenuStrip, a white border appears on the left side
I'm creating a Form and I want the menu bar to have different colors. There are many posts on this, I've managed to alter all the colors, except for a white block/line down the left hand side of the menu.
I'm using .Net Core 3.1, Windows Forms…

Shaun Roach
- 853
- 1
- 7
- 12
1
vote
0 answers
Remove border from ToolStripMenuItem
I am customizing my MenuStrip to make it look better. I've gone really far from default one but there is 1 thing left which I could not change. My MenuStrip looks like this right now.
As you can see in the image there is a grey border around my…

Shino Lex
- 487
- 6
- 22
1
vote
3 answers
Winforms MenuStrip - How to change white line on left edge of dropdown items?
How do I change the color of this white line on a MenuStrip? I can't figure out what property to use.
So far I'm using this code to style all the other parts:
internal static class Clr
{
public static Color White = Color.FromArgb(255, 255,…

JamesHoux
- 2,999
- 3
- 32
- 50