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
1
vote
5 answers
Remove button border when entered
When I hover over buttons on my C# form I have them highlighted yellow like how Microsoft office products but I don't want it to show the button border. I've seen people mention FlatStyle or FlatAppearance but it doesn't seem to recognize those…

Crouch
- 846
- 3
- 17
- 32
1
vote
0 answers
Problems when deleting resource files C#
When I delete resource files from my C# project all the menustrip, toolstrip and status strips items are removed from their respective strips.
These lines of code are deleted everytime it happens.
this.menuStrip1.Items.AddRange(new…

Crouch
- 846
- 3
- 17
- 32
1
vote
1 answer
Detect right click on toolstrip button
I have a toolstrip with a context menu and a toolstrip button in it with a click event.
Initially I tried to assign the context menu to the button itself, but couldn't find a context menu in its property.
So I assigned the context menu to the…

Jerry
- 4,258
- 3
- 31
- 58
1
vote
2 answers
ToolStrip vs MenuStrip - can I make their rendering identical?
I need to display a toolstrip directly beneath a menustrip in my application, but setting RenderMode = Professional for each does not give identical results. They both show a background gradient, but not the same one.
Is there some way to use…

Nick
- 1,490
- 1
- 14
- 21
1
vote
1 answer
want submenu on right mouse click of ToolStripMenuItem - C#
I have one Toolstrip control inside that i am adding some ToolStripMenuItem. For every ToolStripMenuItem, I want one submenu (like Close). And click of right mouse button on any ToolStripMenuItem that submenu should show.
ToolStripMenuItem…

SK.
- 4,174
- 4
- 30
- 48
1
vote
1 answer
Making a ToolStripSeparator horizontal in a vertical toolbar in WinForms
have Googled and cannot find out how to make a ToolStripSeparator "draw" an horizontal line in a toolbar that is aligned vertical.
The separator is drawn vertically which makes it awful.
Eg.
* - item
*
*
| <- separator
*
*
when it should be
*
*
-…

Marcus
- 1,866
- 1
- 20
- 33
1
vote
1 answer
C# Dynamically add ToolStripMenueItems to MenuStrip
I was wondering if SO could help simplify some logic. I have a windows form (C# 2.0) which contains a System.Windows.Forms.MenuStrip.
I want to dynamically add
ToolStripMenueItems to the
MenuStrip. The added items will be
driven off of a…

J.Hendrix
- 2,199
- 4
- 20
- 26
1
vote
1 answer
problem with ToolStripSeparator
I have a toolstrip. For this toolstrip, I am adding ToolStripSplitButton and for this ToolStripSplitButton, I am adding toolstrip items, including ToolStripSeparator. In the click event of the toolstrip items I am retrieving items from the…
user186325
1
vote
1 answer
Only display ToolStripMenuItem icons
I have a Windows Forms ToolStripSplitButton which shows only an icon. I have added some ToolStripMenuItems and I have set their DisplayStyle to ToolStripItemDisplayStyle.Image. The drop down display the area for text (but it's blank), and the…

Michael Kelley
- 3,579
- 4
- 37
- 41
1
vote
1 answer
How do you keep a ToolStripSplitButton within the bounds of its container
I am developing a windows forms application with C#
My main form has a toolstrip with a ToolStripSplitButton which is aligned to the right. When the split button is clicked, its menu displays over the edge of the form, unless, the form is too close…

Matthew Layton
- 39,871
- 52
- 185
- 313
1
vote
1 answer
Create ToolStripMenuItem with checked items
I need create one item in my ToolStripMenuItem with this feature: if I check it, in application is turn on "stay on top" property.
I tryed this code:
private void alwaysOnTopToolStripMenuItem_CheckedChanged(object sender, EventArgs e)
{
…

Vincenzo Lo Palo
- 1,341
- 5
- 19
- 32
1
vote
2 answers
Unable to set focus on ToolStrip button
I have tried to research this all morning and found no solution that worked for me.
I have a ToolStrip, with several buttons on it. I am unable to get figure out how to select any of the buttons when using tab. I did find that it would…

user1800374
- 75
- 1
- 8
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
C# toolstrip dropdown button text box validate on enter key?
I have a toolstrip dropdownbutton which contains textbox in the dropdown menu. I'm trying to make it fire Validate event properly when an Enter key is pressed.
I have this simple code:
private void txtSourceUrl_KeyPress(object sender,…

sh code
- 323
- 3
- 14
1
vote
1 answer
ToolStrip Control, how to programmatically access click event
I have the following code:
Private holdAllDataFromFile As New list(Of String)
holdAllDataFromFile = ReadWrite.ReadAll(FILE_PATH) 'Uses custom class to read/write.
For Each item In holdAllDataFromFile.AsEnumerable
…

Dayan
- 7,634
- 11
- 49
- 76