Here is the picture that shows the problem. Take a look at the bottom right corner.
Anyone knows how to get rid of it?
Setting LayoutStyle
to VerticalStackWithOverflow
fixes it but also centers the items horizontally which I don't want.
I just want a vertical stack like in the pic, but without that black line in the bottom right corner.
In the properties bar, set "RenderMode" to "System" or use
Doing this will change the .BackColor to "Control" but you can change that after if you want.
Sorry for being late to the party, but the accepted answer didn't work for my needs. The following solution is what I came up with:
Getting rid of the black line
1) Create a custom renderer:
2) Use the custom renderer:
Getting rid of the background
The above solution satisfies the need of the original question, but I didn't like the gradient background on the ToolStrip either. I wanted the ToolStrip to be an "invisible" container:
1) Create a custom color table:
2) Use the custom color table:
I think your best shot would be to set the
RenderMode
toSystem
in the properties and leave the layout properties toHorizontalStackWithOverflow
. But that is if you don't mind changing the tooltip paint style.