For Each ControlObject As Control In Me.Controls Select Case TypeOf ControlObject Case TextBox Case ComboBox Case Label End Select Next
If Else
If TypeOf ControlObject Is TextBox Then ElseIf TypeOf ControlObject Is Button Then End If
Select Case
Select Case True Case TypeOf ControlObject Is TextBox Case TypeOf ControlObject Is Button End Select
Select Case val.GetType Case GetType(<yourType>) End Select
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)