Private Sub Command2_Click(Index As Integer)
MsgBox Index
End Sub
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComCtlLib.Button)
On Error Resume Next
Select Case Button.Key
Case "key1" '这是属性页中的【关键字】
Command2_Click (1)
Case "key2" '这是属性页中的【关键字】
Command2_Click (2)
End Select
End Sub