Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim buttonctrl As Button = sender
Label1.Text = sender.GetType.FullName + "," + buttonctrl.Name
End Sub
Private Sub Form_Load()
Dim x As Object
For Each x In Form1
Debug.Print x.Name
Next
End Sub