Questions tagged [toolstripbutton]
68 questions
2
votes
2 answers
Distorted images when using ImageList on ToolStripButton
I want to put some images into a ToolStripButton, and have the images change depending on the state of the button.
So I've set the .ImageList of the ToolStrip to be my ImageList and simply change the ToolStripButton.ImageIndex to the appropriate…

JohnUbuntu
- 699
- 6
- 19
2
votes
2 answers
Can I have a Checked state on a ToolStripSplitButton in WinForms?
Is there a way to have a Checked state on a ToolStripSplitButton? I want to have a ToolStripButton with a Checked property to determine if an overlay is shown in my application's window. My users want to have direct interaction to control the…

DelftRed
- 196
- 1
- 11
2
votes
2 answers
How to set the Control.Parent proprety in C#
I'm making a plugin parser for my C# web browser.
When making the button for the plugin, I need to add the ToolStripButton to the ToolStrip.
Here's my code:
ToolStripButton pluginButton = new ToolStripButton();
pluginButton.Parent =…

Joyesh
- 27
- 7
2
votes
0 answers
Get Location of ToolStripButton image?
I would like to get the location of the the image of an ToolStripButton, how can i do that? I tried it like this:
private void ToolStripButton_MouseHover(object sender, EventArgs e)
{
Graphics formGraphics = this.CreateGraphics();
…

Procos
- 94
- 9
2
votes
4 answers
How do I add a ContextMenuStrip to a ToolStripButton?
I have a toolstrip containing, among other things, a ToolStripComboBox and a ToolStripButton. I want to add a ContextMenuStrip to both of them, but I don't have direct access to the toolstrip or its other contents, so I can't set the context menu…

Simon
- 25,468
- 44
- 152
- 266
2
votes
2 answers
Resizing ToolStripButtons to fit complete BackGround image
My goal is totally fit image in toolStripButton and toolStripDropDownButton.
If a image in the button set with image property, I can not totally fit the image in the button. Because of margin, border, or something of the button.(I don't know…

net
- 153
- 1
- 2
- 12
2
votes
1 answer
Create a Toolstrip for each Toolstripbutton located on a main Toolstrip
I want to create a Toolstrip and for each ToolStripButton. I also want to create a Toolstrip below the first, in this way each Toolstrip dynamically appear when I click on a ToolStripButton.
I have tried to create the main Toolstrip with Visual…

YouneL
- 8,152
- 2
- 28
- 50
2
votes
1 answer
How to add to ContextMenuStrip and ToolStrip same ToolStripButtons?
I have tool bar in my app and context menu with the same options, so I want to
add ToolStripButtons to both ContextMenuStrip and ToolStrip, unfortunately I can't do this.
Even when I add manually items to both it shows only on one.
For now I have…

Kamil Szymon
- 91
- 6
2
votes
0 answers
ToolStripButton Tooltip location is wrong
I have a ToolStrip that have a couple of ToolStripButtons with tooltips. When I highlight any of the buttons the tooltip shows just fine but its location is a bit far from the cursor.
I got no idea why is this happening and I tried to workaround it…

prettyvoid
- 3,446
- 6
- 36
- 60
2
votes
1 answer
Flashing ToolStripButton
I am using a ToolStrip with a number of ToolStripButtons.
What I would like is to be able to flash one of the buttons to get the user's attention.
For example, if they have made changes to information and need to click the Save button.
If this were…

Nick
- 25,026
- 7
- 51
- 83
1
vote
2 answers
Strange ToolStripButton click to open an OpenFileDialog behavior
I found a strange ToolStripButton double click problem. These steps will reproduce the problem:
Create a Windows Form Application.
Add a ToolStrip on the main form.
Add a ToolStripButton on the ToolStrip.
Add an OpenFileDialog on the main…

EFanZh
- 2,357
- 3
- 30
- 63
1
vote
1 answer
C#: Disappearing arrow after OnRenderSplitButtonBackground override
I was trying to change the background of a ToolStripSplitButton using an override, but by doing that the arrow on the dropdown disappears when hovering on the button.
Code:
protected override void…

Dj_Mike238
- 65
- 1
- 2
- 7
1
vote
1 answer
Handle NumericUpDown.ValueChanged event before ToolStripButton.Click event
I have a form with the NumericUpDown and the ToolStripButton.
In the NumericUpDowns ValueChanged event handler the value of some object instance is changed.
In the ToolStripButtons Click event handler the object instance is saved.
Now the…

Artholl
- 1,291
- 1
- 19
- 38
1
vote
2 answers
Unable to create multi line icon captions in C# toolstrip control
I've been trying and trying to get the standard C# toolstrip control to format button text as multiline, and so far I've had to admit defeat.
What I'm trying to achieve is text under the picture, and the text wrapping a fixed icon size, rather than…

T5Dave
- 13
- 1
- 3
1
vote
1 answer
Simulate click on Windows Froms ToolStrip button in another process
I've found the handle of a Windows Forms ToolStrip in another application.
(Window name is toolStrip1, class name is WindowsForms10.Window.8.app.0.378734a.)
Is there any way to enumerate the child buttons, find a button by caption and simulate a…

user1768761
- 105
- 11