|
-
Nov 25th, 2002, 05:20 PM
#1
Thread Starter
Hyperactive Member
Toolbar - "Buttongroup"
How do I create a Toolbar Buttongroup (vb6) in VB .NET?
Thanks
-
Nov 25th, 2002, 05:25 PM
#2
Frenzied Member
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.
Dont gain the world and lose your soul
-
Nov 25th, 2002, 05:56 PM
#3
Thread Starter
Hyperactive Member
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?
Last edited by RealNickyDude; Nov 25th, 2002 at 06:36 PM.
-
Dec 6th, 2002, 10:04 AM
#4
Junior Member
*bump*
-
Dec 6th, 2002, 11:09 AM
#5
They just changed the name, change the 'Style' property of the button to 'DropDownButton'.
-
Dec 6th, 2002, 11:17 AM
#6
Thread Starter
Hyperactive Member
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.
-
Dec 6th, 2002, 11:21 AM
#7
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.
-
Dec 6th, 2002, 11:35 AM
#8
Thread Starter
Hyperactive Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|