Results 1 to 8 of 8

Thread: Toolbar - "Buttongroup"

  1. #1

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435

    Talking Toolbar - "Buttongroup"

    How do I create a Toolbar Buttongroup (vb6) in VB .NET?

    Thanks
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  2. #2
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    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

  3. #3

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    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.
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  4. #4
    Junior Member
    Join Date
    Jul 2002
    Posts
    31
    *bump*


  5. #5
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    They just changed the name, change the 'Style' property of the button to 'DropDownButton'.

  6. #6

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    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.
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  7. #7
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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.

  8. #8

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435
    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.
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width