May 31st, 2011, 01:50 PM
[VB .NET] [Controls] SplitButton Control
For my program I needed a splitbutton, but I had to convert it from c# to vb .net. Original source:
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 06:59 AM.
Jul 23rd, 2011, 03:09 PM
Re: [VB .NET] [Controls] SplitButton Control
Good control, but right clicking will still show a ContextMenuStrip...is there a way to kill that?
Tags for this Thread
Click Here to Expand Forum to Full Width
Survey posted by VBForums.