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

2

12

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

Orgell answered 22/8, 2014 at 17:15 Comment(0)
O
13

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

Orgell answered 22/8, 2014 at 17:17 Comment(3)
I swear sometimes... I stare at something for 10 mins and can not see it... I look on the stack and can't find a quick and simple answer... So I ask it and spend 10 mins asking it... After I'm done I look back to the other monitor and it slaps me in the face... Then I go to answer my own question to help others out... 30 mins later I continue to code... Gezz...Orgell
I couldn't find this property, but setting "ShowDropDownArrow" to false provided the same effect.Lew
DropdownButtonWidth for ToolStripSplitButton and ShowDropDownArrow for toolStripDropDownButtonNaughty
C
6

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)

Chane answered 12/6, 2016 at 15:7 Comment(2)
Weird. It works perfect for me. I'm always working in c#v4 maybe that's something new in new framework?Orgell
I am working in 4.5.1 and I see the pixels too. But using a DropDownButton works great.Nothingness

© 2022 - 2024 — McMap. All rights reserved.