How can I capture which button is pressed on a toolbar, besides using (the bold bit):VB Code:
Select Case ToolBar1.Buttons.[b]IndexOf(e.Button)[/b] Case 0 .....
I want to get the name of the button ("save", "load", "new", etc) in case I add / insert buttons later, otherwise i'd have to change all the case statements!
VB 6 had a unique key, but I can't seem to find that on VB .NET?




Reply With Quote