How do I create a Toolbar Buttongroup (vb6) in VB .NET?
Thanks :D
Printable View
How do I create a Toolbar Buttongroup (vb6) in VB .NET?
Thanks :D
Do you mean an array? The toolbar control exposes a Buttons property that returns an array of all the buttons on the toolbar. That might help you.
I don't think that's it, in VB6, you could create a Buttongroup (as well as a Placeholder, Seperator and others from a drop-down) so that only one button in the buttongroup could be pressed (a bit like radio buttons).
I know you can have a Togglebutton but how can I create a Buttongroup?
Also, how do you change the width of a Separator?
*bump*
:D
They just changed the name, change the 'Style' property of the button to 'DropDownButton'.
That's not it Edneeis, 'DropDownButton' just lets you attach a drop-down menu. I need one button pressed at a time. Click one, the previously pressed one pops up - like radio buttons. :)
I don't think there is an intrinsic mathod of doing that, but you can just change the others on the click of one of them.
You can use the ToggleButton style to make them stay down then just make sure only one of them's Pushed property is always true, should be very easy.
Probably, but that means having to check which button is pressed then un-pop it all in code when VB6 did it automatically. I can't understand why they removed the ButtonGroup option, it was easier to use when flicking between panels.
Unless i'm missing something. :D