我正在尝试将所有保存的 my.settings 加载到我的文本框中,但我无法检索保存的值。这是我的代码
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
正确的方法是什么?谢谢