If you are only putting in Controls of your form, better user
Control
over
Object
Also List maybe better than a Array
Dim _button As Button = New Button
Dim _textbox As TextBox = New TextBox
Dim _picturebox As PictureBox = New PictureBox
Dim _ControlList As New List(Of Control)
_ControlList.Add(_button)
_ControlList.Add(_textbox)
_ControlList.Add(_picturebox)
For Each c As Control In _ControlList
Select Case c.GetType
Case GetType(TextBox)
'addhandler stuff for textboxes
End Select
'
Select Case True
Case TypeOf c Is TextBox
'addhandler stuff for textboxes
End Select
Next
as
Graeme_Grant
already mentioned
TypeOf
is for checking against Types.
if you have multiple selects a Select Case Statement might do the job better