Exemple #1
0
        private void OpenTextColorDialog(object sender, EventArgs e)
        {
            DialogResult result = TextColorDialog.ShowDialog();

            if (result == DialogResult.OK)
            {
                LayoutRichTextBox.SelectionColor = TextColorDialog.Color;
            }
        }
Exemple #2
0
        private void SetBackgroundColor(object sender, EventArgs e)
        {
            DialogResult result = TextColorDialog.ShowDialog();

            if (result == DialogResult.OK)
            {
                Program.Settings.BackgroundColor = SerializableColor.FromColor(TextColorDialog.Color);
                LayoutRichTextBox.BackColor      = TextColorDialog.Color;
            }
        }