Dim buttons As New List(Of Button)()
for(int i = 0; i<100; i++)
{
Dim myButton As New Button()
AddHandler myButton.Click , AddressOf MyClickHandler
buttons.Add(myButton)
}
Private Sub MyClickHandler(sender As Object, e As System.EventArgs)
End Sub
Thats the best I can do without more insight, like whether you're using ASP.NET, Winforms, WPF..
Updated the answer there was some C# intermingled with the VB.NET