Lets say I have a form with several Textboxes that are all bound to "bindingsource1". I'd like to be able to check the field data type each textbox is bound to. Something like this,
Code:
        Dim ctl As Control
        For Each ctl In frm.Controls
            If ctl.GetType.IsAssignableFrom(GetType(TextBox)) Then
                if ctl 'data type of field' = "Text" then
                    'then check if text is entered
                end if
                if ctl 'data type of field' = "Number" then
                    'then check if a number is entered
                end if 
            End If
        Next
I've been searching but can't find anything on this subject. Maybe I'm not wording my search right.

Any information or suggestion would be appriciated.