Yliah Yliah - 9 months ago 55
Vb.net Question

Looping of textboxes that has values (integer)

Ive been thinking of how to loop my textboxes that has integer as a value. Please help me with this problem, thank you in advance.

Answer Source

If your application is Windows Form, this is how you can get all integer values...

Dim intList As New List(Of Integer)()
For Each c As Control In Me.Controls
    If c.GetType Is GetType(TextBox) Then
        If Integer.TryParse(c, 0) Then
        End If
    End If