Results 1 to 7 of 7

Thread: Toolbar buttons like Radiobuttons *[RESOLVED]*

Threaded View

  1. #1

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

    Thumbs up Toolbar buttons like Radiobuttons *[RESOLVED]*

    I have a toolbar with which I want the image that the user clicked upon to stay pressed until another one is pressed, then I wish the last button pressed to pop out and the new button to press in <phew!>

    I know I can set the buttonstyles to pushbutton and I know I have to get the index of the last button pressed and I know you have to use something like:

    VB Code:
    1. Case "Details" 'First button
    2.     pnlDetails.BringToFront()
    3.     [b]OldIndex = 0[/b]
    4.     MessageBox.Show(OldIndex)
    5.     '
    6. Case "Game" 'Second button
    7.     <[i]toolbar1.Buttons.IndexOf(oldindex) = <pop this button out>[/i]>
    8.     ...
    But what exactly is the right code? Can anyone help? Please.
    Last edited by RealNickyDude; Dec 9th, 2002 at 07:27 PM.
    [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