Visual Basic 3 Page :t n:v ux:~ |:nu msdn : Private Sub tbrExample_ButtonClick(ByVal Button As Button) ' Use the Key property with the SelectCase statement to specify an action.
Select Case Button.Key Case Is = "open" ' Open file. MsgBox "Add code to open file here!" Case Is = "save" ' Save file. MsgBox "Add code to save file here!" End Select End Sub