I am trying to load all saved my.settings to my textboxes but I am unable to retrieve the saved values. Here is my code
Dim ctrl As Control
For Each ctrl In Me.Controls
If (ctrl.GetType() Is GetType(TextBox)) Then
Dim txt As TextBox = CType(ctrl, TextBox)
For i As Integer = 1 To 20
txt.Text = My.Settings("fp" & i)
Next
End If
Next
What is the proper way to do it?Thanks