TextBoxからの値、 からのテキスト項目SelectedIndex、ComboBoxおよびCheckBoxチェック済みの true または falseを保存したいと考えています。OnClick次に、ボタンから保存した設定を呼び出したいと思います。私はTextBox以下を試してみましたが、次のエラーステートメントが表示されます: KeyNotFoundExceptionwas unhandled by user code. 指定されたキーが現在の辞書にありませんでしたか?
誰でも私を助けることができますか?
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