I have been searching for this but I am not able to find anything related to how to iterate through all dynamically created controls on the grid. I'm basically only looking to grab data from a dynamically created textbox, I have tried the following but it is not pulling up any children
Dim ctl As FrameworkElement = Me
Dim children As Integer = VisualTreeHelper.GetChildrenCount(ctl)
For i = 0 To children - 1
Dim Child As FrameworkElement = VisualTreeHelper.GetChild(ctl, i)
Next
Code used to add a textbox onto the form
For i = 0 To tb - 1
Dim t As New TextBox
t.Width = 75
t.Height = 25
t.Focus()
Grid.SetColumn(t, columns)
MyGrid.Children.Add(t)
t.Focus()
Next