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:
But what exactly is the right code? Can anyone help? Please.VB Code:
Case "Details" 'First button pnlDetails.BringToFront() [b]OldIndex = 0[/b] MessageBox.Show(OldIndex) ' Case "Game" 'Second button <[i]toolbar1.Buttons.IndexOf(oldindex) = <pop this button out>[/i]> ...![]()




Reply With Quote