Hiya...I've came to another problem. Why the code bellow is not working properly although all my textboxes names starting with tb_name, tb_adress, etc...
I cant see any problem or?
Code:
For Each GB As Control In Me.Controls
If TypeOf GB Is GroupBox Then
For Each ctl As Control In Me.Controls
If TypeOf ctl Is TextBox Then
If ctl.Name.StartsWith("tb") Then
MsgBox("Test")
End If
End If
Next
End If
Next