In the Designer you have following properties:
Name: the view name
EventName: the name for the view's events.
Tag: an independant property that can hold any object
If you have 10 buttons called btnTest1, btnTest2 to btnTest10 you can set the EventName property to btnTest for all Buttons and set their Tag property to 1, 2, to 10. The Tag property is used to know what Button raised the event.
Then in the code you need:
Sub btnTest_Click
Dim btn as Button
btn = Sender
Select btn.Tag
Case 1
Case 2
.
.
Case 10
End Select
End Sub
You'll find an example in the SecondProgram in the
Beginner's Guide.
Best regards.