private void button1_Click(object sender, EventArgs e) { //Write textbox text to DNote file WriteToFile cls = new WriteToFile(); cls.AppendLineToDNoteFile(tbxDNoteText.Text); //Call the method to reload the updated file path from settings GetDNoteFilePathFromSettings(); }