Ejemplo n.º 1
0
        //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);
        }
Ejemplo n.º 2
0
 private void ClearButton_Click(object sender, EventArgs e)
 {
     ContentRichTextBox.Clear();
 }
Ejemplo n.º 3
0
 //loads file from hardcoded location
 private void LoadButton_Click(object sender, EventArgs e)
 {
     ContentRichTextBox.LoadFile(@"C:\Users\{-your username here-]}\Desktop\test.rtf");
 }