//changes color and saves it to hardcoded location private void SaveButton_Click(object sender, EventArgs e) { ContentRichTextBox.SelectionBackColor = Color.Red; ContentRichTextBox.ForeColor = Color.Green; ContentRichTextBox.SaveFile(@"C:\Users\{-your username here-]\Desktop\test.rtf", RichTextBoxStreamType.RichText); }
private void ClearButton_Click(object sender, EventArgs e) { ContentRichTextBox.Clear(); }
//loads file from hardcoded location private void LoadButton_Click(object sender, EventArgs e) { ContentRichTextBox.LoadFile(@"C:\Users\{-your username here-]}\Desktop\test.rtf"); }