Usage:
After adding it to your form (like any other control), add a contextmenustrip. Set the "ContextMenuStrip" property of the added SplitButton to this contextmenustrip. Finally, add some menuitems to the toolstrip or maybe change its layout a bit.
To open the context menu, click on the arrow. To click the button, click outside this arrow (on the text). When pressing space it will click the button, any other key will activate the dropdown menu.
Last edited by bergerkiller; Jun 13th, 2011 at 05:59 AM.
I can't assign an image to my Split Button control. It's a shutdown menu and I want the split button image to be a shutdown image, but the image doesn't show up. What do I do?
I can't assign an image to my Split Button control. It's a shutdown menu and I want the split button image to be a shutdown image, but the image doesn't show up. What do I do?
The OP's last activity was back in May of 2014, so I'm not sure if he'll come back to answer your question. However, I downloaded the file and examined the code. It appears as if the style of the button is drawn manually in the OnPaint event using the ButtonRenderer.DrawButton Method. What I would suggest doing is using one of the overloads that accepts an image.
The OP's last activity was back in May of 2014, so I'm not sure if he'll come back to answer your question. However, I downloaded the file and examined the code. It appears as if the style of the button is drawn manually in the OnPaint event using the ButtonRenderer.DrawButton Method. What I would suggest doing is using one of the overloads that accepts an image.