Questions tagged [toolstripbutton]
68 questions
23
votes
3 answers
How to change System.Windows.Forms.ToolStripButton highlight/background color when checked?
I have a ToolStripButton that is used as a radio button. When it is checked, a blue outline surrounds the button, but there is no background color. It is not clear enough for the user that the button is checked, so I would like to change the…

mwalsher
- 2,790
- 2
- 33
- 41
10
votes
1 answer
How to get coordinates of ToolStripButton?
How can I get coordinates of ToolStripButton?

Yuriy
- 2,670
- 6
- 33
- 48
10
votes
2 answers
How to disable appearing of ToolTip text over ToolStripButton?
I trying to display own custom ToolTip with image, but the native ToolTip makes all bad.
It still appears where it no needed.
I creating ToolStripButton in that way:
ToolStripButton btn = new ToolStripButton();
btn.Text = name;
btn.ToolTipText =…

Kosmo零
- 4,001
- 9
- 45
- 88
9
votes
3 answers
How to customize toolstrip button highlight color on mouse over
I use a ToolStrip in a C# winform application.
As I move the mouse over a button it gets highlighted (transparent blue color), I would like to change this color
I tried to use a custom renderer class
toolStrip1.Renderer = new MyRenderer();
....
…

Ahmad
- 8,811
- 11
- 76
- 141
8
votes
1 answer
Is there a WPF equivalent for ToolStripButton?
I'm learning WPF and have been trying to create a toolstrip. Is there a direct equivalent of the WinForms ToolStripButton or is the correct way of use just to add a normal button and format it?
I've found that Microsoft have a page that lists…

GrandMasterFlush
- 6,269
- 19
- 81
- 104
8
votes
2 answers
How to make a ToolStrip button immediately clickable without clicking on the form first?
I have a windows forms app with a toolstrip that contains buttons. Frustratingly, I have to click twice on any button to get it to fire when the form isn't focused. The first click seems to activate the form, and then second click clicks the button…

ChaseMedallion
- 20,860
- 17
- 88
- 152
4
votes
4 answers
How do I change the cursor for a ToolStripButton?
I want to change the user's cursor when they hover over a specific ToolStripButton, but not for the other items on the ToolStrip. How do I set the button's cursor?

Simon
- 25,468
- 44
- 152
- 266
4
votes
2 answers
ToolStripButton: what's wrong with assigning an image programmatically
There is a Form with a ToolStrip. This ToolStrip contains a ToolStripButton. I want to assign an image to this button:
this.btnSaveFile.Image = Bitmap.FromFile("C:\\Work\\Icons\\png\\save.png");
It works only if there is save.png on specified path.…

Racoon
- 951
- 3
- 14
- 32
3
votes
3 answers
Why is a NullReferenceException thrown when a ToolStrip button is clicked twice - openFileDialog.showDialog()?
I created a clean WindowsFormsApplication solution, added a ToolStrip to the main form, and placed one button on it. I've added also an OpenFileDialog, so that the Click event of the ToolStripButton looks like the following:
private void…

Patrick
- 31
- 1
- 3
3
votes
2 answers
toolstripbutton remove lighting
I have a toolstripbutton into my toolstrip, and I wish remove the orange lighting when a mouse is hover, because I change the picture of the button dynamically..
How can I do this?

ghiboz
- 7,863
- 21
- 85
- 131
3
votes
6 answers
ToolStripButton text gets cut off in ContextMenuStrip
I am instantiating my own ToolStripButton and adding it to a ContextMenuStrip. It pops up but the text gets cut off:
string[] layouts = new string[]{"Test 1", "Test 2", "Test 3"};
List items = new List();
foreach…

leora
- 188,729
- 360
- 878
- 1,366
3
votes
2 answers
How to programmatically press toolstripbutton down?
I want to push toolstripbutton down in my code and I can't seem to be able to do that. I know on Delphi RAD Studio or XE, you can do the following and cause the button to be pressed.
ToolStripButton1.Down := true;
The only ToolStripButton property…

ThN
- 3,235
- 3
- 57
- 115
2
votes
2 answers
How do I programmatically wire up ToolStripButton events in C#?
I'm programmatically adding ToolStripButton items to a context menu.
That part is easy.
this.tsmiDelete.DropDownItems.Add("The text on the item.");
However, I also need to wire up the events so that when the user clicks the item something actually…

James
- 2,404
- 2
- 28
- 33
2
votes
3 answers
Change delay time ToolTipText on ToolStripButton
Application is in c#/WinForm
I'm using ToolStrip with button.
I setted ToolTipText, it is working.
Can I change the delay time to longer value ?
In other controls I'm using ToolTip control and it is possible (AutoPopDelay value).

Krzysztof Adamowicz
- 31
- 2
2
votes
3 answers
C# inform how would one change an image on the toolstrip after it is selected
I am looking to change the image of the button on the tool strip after it is selected. The image property is system.drawing.bitmap and was saved to Properties\Resources.resx file.
Thanks in advancen
An explanation of the logic would be nice too!

Yaron Buki
- 81
- 2
- 12