private void richTextBox1_KeyDown(object sender, KeyEventArgs e) { if (Properties.Settings.Default.url == "") { } else { if (File.Exists(Properties.Settings.Default.url)) { using (StreamWriter writer = new StreamWriter(Properties.Settings.Default.url, true)) { writer.Write(richTextBox1.Text); writer.Close(); Properties.Settings.Default.Save(); } } else { MessageBox.Show("File Path: " + Properties.Settings.Default.url + " Dose Not Exist"); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)