Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

StatusStrip - Add a button without the dropdown arrow to the right of it

Tags:

c#

statusstrip

I know there is a ToolStripSplitButton...

ToolStripSplitButtonWithDropDown

... but is there any way to use that button object without the dropdown arrow to the right of it. Ending up with JUST an image that's a button?

ToolStripSplitButtonWithoutDropDown

like image 684
Arvo Bowen Avatar asked Aug 22 '14 17:08

Arvo Bowen


People also ask

How to add the statusstrip control to a form's controls?

Once a control is created, we need to set its properties and call Form.Controls.Add method to add the StatusStrip control to a Form's controls. The StatusStrip class is inherited from the ToolStrip ->ScrollableControl->Control classes and hence has all of the common properties supported by a Windows Forms control.

What is a statusstrip in AutoCAD?

Typically, a StatusStrip control consists of ToolStripStatusLabel objects, each of which displays text, an icon, or both. The StatusStrip can also contain ToolStripDropDownButton, ToolStripSplitButton, and ToolStripProgressBar controls. The default StatusStrip has no panels.

What is the difference between statusstrip and StatusBar?

The StatusStrip control is much more powerful than the StatusBar control in the previous versions of Windows Forms. The StatusStrip control can not only display the text status in the status bar area but also allows us to host other child controls such as a DropDownMenu, ProgressBar, and a SplitButton.

What is the use of status strip in form?

StatusStrip In C#. A typical status bar control, placed on the bottom of a Form is used to display some text that represents a status of the application and user actions. In the previous versions of the Windows Forms, the StatusBar control is used to provide the status bar functionality.


2 Answers

Use ToolStripDropDownButton wo dropdown items.

Set ToolStripDropDownButton.ShowDropDownArrow = false;

(I tried a method "Set the DropdownButtonWidth to 0", but to me continues to see several Pixels from black triangle)

like image 63
NikB Avatar answered Oct 20 '22 02:10

NikB


Found it... Set the DropdownButtonWidth to 0...

like image 23
Arvo Bowen Avatar answered Oct 20 '22 03:10

Arvo Bowen