Questions tagged [toolstripbutton]
68 questions
0
votes
0 answers
Images from a custom user control in another assembly resource file are not displaying when used in my project but display fine in VS designer
I downloaded an existing RTF Editor custom user control from http://www.workaholic.hu/temp/RTFEditor.zip which I then upgraded to .Net 5.0 following this guide after checking using compatibility analyzer and it works as it did before..
I added that…

Jay Croghan
- 445
- 3
- 16
0
votes
1 answer
How do I draw a border around a ToolStripButton
I have a ToolStripButton inside a ToolStrip that I want to draw a border around. This is the code I am using:
private void tsbtnSearch_Paint(object sender, PaintEventArgs e)
{
ToolStripButton btn = (ToolStripButton)sender;
…

RickInWestPalmBeach
- 548
- 6
- 20
0
votes
1 answer
Errors after changing tool strip button image
Once i add this line to the code:
this.tsbAdd.Image = Bitmap.FromFile(@"..\..\Resources\add.bmp");
I'm unable to open editor of that form.
Screenshot of designer
I can compile app and images work as they should.
Expected results - new image is…
user13210765
0
votes
1 answer
Programmatically adding a toolstrip button and attaching click event
I have a class which creates toolstrip buttons for a C1Editor and it works fine because the commands are inbuilt. There are about five forms that uses this class to create their toolstrip buttons. I am adding a custom button and this requires a…

Bainn
- 37
- 12
0
votes
1 answer
How to create a ToolStripDropDownButton?
I want to create a ToolStripDropDownButton which looks like the below image
But when I tried to search for ToolStripDropDownButton control in the Toolbox I was unable to find it because, after some googling, I found out that it is a class not …

Agent_Spock
- 1,107
- 2
- 16
- 44
0
votes
1 answer
toolstripbutton with images for each state
I have in my app a ToolSrip with some ToolStripButtons.
I wish add not only the basic image, but an image for the hover state and another for the clicked state, and if possible, remove the orange background when the button is hovered by the…

ghiboz
- 7,863
- 21
- 85
- 131
0
votes
1 answer
C# project build errors after importing button image on toolstrip button
I am just starting to use the ToolStrip object on my windows Form.
I followed a nice tutorial that explained how to add the tool strip, then add a button, then assign a image to the button.
So, I added the toolstrip and then added the button:
As…

Andrew Truckle
- 17,769
- 16
- 66
- 164
0
votes
1 answer
toolStripButton Has no Definition for 'Show' & 'Hide'? (c#)
So before I go to my problem I have some things to point out.
-They are in the same Form
-Regular Buttons work
-This is being activated on the press of a button
So my error is 'ToolStripButton' does not contain a definition for 'Show' and no…

Jake F.
- 141
- 1
- 3
- 17
0
votes
1 answer
Change ToolStripButtomItem Attributes Using EventHandler
this is my first question on stackoverflow, therefore errors in asking-style aren't on purpose.
I'm both, new to C# as to the concept of event-handling, so
I would like to know, if there is any possibility to have the value of an…

krouch
- 105
- 9
0
votes
3 answers
How to add a event handler to a ToolStripButton in C# code?
Me again, and it's another problem with my plugin parser for my c# browser, I'm trying to add a eventhandler to make it to where when you hit the plugin button it does something. The reason i am having to do this in code is because it is loading the…

Joyesh
- 27
- 7
0
votes
2 answers
c# & winforms - unable to set Image of ToolStripButton
This seems like a fairly basic thing to do, but for some reason it just fails silently:
///
/// Sets the button to show it's busy image
///
public void SetBusy()
{
if (Control is Button)
{…

Jez Clark
- 383
- 5
- 19
0
votes
2 answers
How to add a timing event
Is there a way when I click on a ToolStripButton, it shows the WaitCursor and updates the StatusStrip for about 10 seconds, then returns back to normal. I just don't know how to type in the coding.
If someone could guide me through the process. (or…

Mr Mahone
- 27
- 1
- 8
0
votes
3 answers
Select/Unselect ToolStripButton
I try to make the flashing effect on the ToolStripButton. By using Select() method, I can give it the mouse hover effect but I don't know how to return it to the normal state.
Edit: I solved this by making a dummy ToolStripButton on the same…

andrewfam
- 447
- 2
- 5
- 8
0
votes
1 answer
Reorder toolStrip items within the same toolStrip without holding the ALT Key pressed in C# VS 2008
I have a toolStrip1 placed on a Form (System.Windows.Forms) in C# and added five toolStrip buttons to it. Now I wonder how to let the user reorder these buttons by dragging them on another positions within the toolStrip1. I set the…

feedwall
- 1,473
- 7
- 28
- 48
0
votes
1 answer
toolstripbutton error in vb.net
I have a toolstripbutton that contains this code:
Dim total, tXS, tS, tM, tL, tXL As Integer
For i = 0 To dvJOBranch.Rows.Count - 1
tXS += dvJOBranch.Rows(i).Cells("XS").Value
tS += dvJOBranch.Rows(i).Cells("S").Value
tM…

Matthew
- 640
- 3
- 15
- 38