Home > Net >  C # richtextbox selectioncolor no effect after setting
C # richtextbox selectioncolor no effect after setting

Time:11-12

Using selectioncolor=color. Yellow or selectionbackcolor=color. Yellow, without any effect, didn't find out why

CodePudding user response:

Effective measurement,
RichTextBox1. SelectionColor=Color. Yellow;
RichTextBox1. AppendText (" effective ");
At this point, effective for yellow,

CodePudding user response:

reference 1st floor muyiliu response:
effective measurement,
RichTextBox1. SelectionColor=Color. Yellow;
RichTextBox1. AppendText (" effective ");
At this point, effective for yellow,

After running the program, in editing a few random word richtextbox edit box, right-clicking choose text, see effective didn't ~

CodePudding user response:

reference 1st floor muyiliu response:
effective measurement,
RichTextBox1. SelectionColor=Color. Yellow;
RichTextBox1. AppendText (" effective ");
At this point, effective for yellow,

You this way, after the program is run by the manual editing text, choose again, should be no effect

CodePudding user response:

Can only be used after choosing colors appandtext, then behind the increasing number of the problem is the color of your choice, change doesn't count
  • Related