Have several buttons on a tool strip and also an errant Select Case.
Here is the select case
The problem is that tbrText.text is not a replacement for Button.Key as in VB6. Have also tried toolstripaccessibleobject.
Any ideas would be great. thanks
Here is the select case
Code:
Select Case tbrText.Text
Case "New"
Call mnuFileNew_Click()
Case "Open"
Call mnuFileOpen_Click()
Case "Print"
Call mnuFilePrint_Click()
Case "Save"
Call mnuFileSaveAs_Click()
End Select
Any ideas would be great. thanks