我想从 a 中保存一个值,从 a 中保存一个文本TextBox
项,并检查 true 或 false。然后我想用按钮调用保存的设置。我尝试了以下内容,但收到以下错误声明:用户代码未处理。给定的键不在当前字典中?SelectedIndex
ComboBox
CheckBox
OnClick
TextBox
KeyNotFoundException
有谁能够帮助我?
Private Sub Button2_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles Button2.Click
Dim Store As IsolatedStorageSettings = IsolatedStorageSettings.ApplicationSettings
IsolatedStorageSettings.ApplicationSettings(TextBox1.Text) = TextBox1
End Sub
Private Sub Button3_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles Button3.Click
TextBox1 = (IsolatedStorageSettings.ApplicationSettings(TextBox1.Text))
End Sub