Questions tagged [toolstripbutton]

68 questions
1
vote
4 answers

How do I get a disabled ToolStripButton to paint its image in colour?

We have a button which allows users to 'lock' a form. Users are not permitted to 'unlock' the form, so when pressed, we want the button to be disabled, so that the user receives appropriate visual feedback. However, the customer reports that the…
Simon
  • 25,468
  • 44
  • 152
  • 266
1
vote
1 answer

.NET Multiple ToolStripButtons in a single ContextMenuItem

I'm trying to create a ContextMenu where some items in the menu contain more than a single item. You could see it as trying to combine a ToolStrip and ContextMenuItem. I've tried using a ToolStripControlHost, but this creates problems with the…
1
vote
1 answer

Show CheckBox on ToolStripButton

I know that the ToolStripButton has checkbox functionality and should be used when you need a checkbox on a ToolStrip. However, the blue outline that appears to be the only indication of being Checked doesn't exactly scream "Hey, this is a…
Trevortni
  • 688
  • 8
  • 23
1
vote
1 answer

Can I add an ElementHost to a regular WinForm StatusStrip?

I just started learning WPF, and I've been trying to add this WPF control to a regular WinForm. I know I can use Forms.Integration.ElementHost to host WPF controls in a WinForm. But as StatusStrip takes Items and not Controls it's marking the…
1
vote
1 answer

ToolStripButton still highlighted when form is disabled/enabled

I have a WinForms application containing a ToolStrip with ToolStripButtons. Some of the button actions disable the main form while the button action takes place and re-enable it when finished. This is done to make sure the user does not click on…
Andres
  • 121
  • 6
1
vote
1 answer

ToolStripDropDownButton does not show items when right aligned

I developed a Winforms application that has a Toolbar. The last element in the toolbar is a ToolStripDropDownButton with some items. I needed this button to be shown apart from all other toolbar buttons, so I set the Alignment property to right. In…
jstuardo
  • 3,901
  • 14
  • 61
  • 136
1
vote
1 answer

Can't see AutomationID on toolstripbuttons (winforms)

I'm trying to set the automationid property on a couple of toolstripbuttons in a winforms window so that I can uniquely identify them later with UISpy. However, I am at a loss. I've set the name & text properties for the buttons but UISpy does not…
Raysmooth
  • 21
  • 4
1
vote
2 answers

Resizing ToolStrip item's image

Is there any way I can fit/resize the image of ToolStrip item? I already set the property AutoSize = False , ImageScaling = SizeToFit & Size = 40, 40 but only the item's boxes resizing (leave spaces around image) and the image size is still with…
Emerald
  • 864
  • 1
  • 14
  • 37
1
vote
2 answers

C# Question:Dynamically Disable ToolStripMenuItems/ToolStripButtons in an MDIParent Form: Which Event?

Any guidance on the following issue would be greatly appreciated. In which MDIParent event should I disable the items/buttons? Activated? On program Launch, I want the buttons disabled. If there are no active MDIChildren, I want the buttons…
RedEye
  • 845
  • 1
  • 9
  • 22
1
vote
0 answers

connecting forms with each other using a module

I'm new to programming and have a problem in VB.net For a project with a couple of forms, I wanted to work with a module that automatic loads a menu (toolstrip) in a form (kind of CSS in web develop). This works for the first time but if I repeat…
1
vote
1 answer

Iterate all controls in BindingNavigator

I have some windows forms that each has some controls including buttons,ComboBox,... and also in each form i have a Bindingnavigator control that i added some new Toolstrip buttons to it, how can i write a general method that get 3 parameters and…
Masoud
  • 8,020
  • 12
  • 62
  • 123
1
vote
1 answer

How to change default image of derived ToolStripButton?

It seems like a simple task. Create a C# class that derives from ToolStripButton. The derived ToolStripButton should behave exactly the same as the parent class in the designer and the application, except that the default image should be…
1
vote
2 answers

How to change the back color of tool strip split button in windows form c#

How to change the back color of the tool strip split button in windows forms application. Back color property not working.. This the code in designer class.. this.level.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))),…
Murugesan
  • 37
  • 3
  • 6
1
vote
2 answers

ToolStripButton.Left property is missing

I need to set a panel.Left property equal to a ToolStripButton.Left value: pan1.Left = btn1.Left; but there is no such property for ToolStripButton. Is there a solution, please. If there is no - how to place the panel on the center of a Form.
Buena
  • 2,461
  • 2
  • 20
  • 22
0
votes
2 answers

How to know if ToolStripButton click was fired?

In my Windows Forms project I have a BindingNavigator control in a user control (It is a data-binding scenario). Pressing one of the buttons, First, Previous, Next or Last throws exception, crashing the application entirely. To tackle this I have…
DotNet Developer
  • 2,973
  • 1
  • 15
  • 24