I am trying to read the activation of toolbar button using a case
statement. I can read them fine using if statements, but tht seems unefficient.
The problem is, i keep getting a blue line under the is.
Thanks.
statement. I can read them fine using if statements, but tht seems unefficient.
The problem is, i keep getting a blue line under the is.
Visual Basic:
Private Sub ToolBar1_ButtonClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ToolBarButtonClickEventArgs) Handles ToolBar1.ButtonClick
select e.Button is
Case tbrOptions
Case tbrConnect
Case tbrPause
Case tbrExit
End Select
End Sub
Thanks.