Home > Net >  Excuse me RichTextBox after custom links in the default font color became blue and underlined, how t
Excuse me RichTextBox after custom links in the default font color became blue and underlined, how t

Time:10-08

If inscribe!
Excuse me RichTextBox after custom links in the default font color became blue and underlined, how to remove the underline can change the color of the hyperlinks

CodePudding user response:

Waiting for! Online etc.!

CodePudding user response:

Use the Rtf properties should be able to control

CodePudding user response:

Thank you very much for your resume I'll give it a try

CodePudding user response:

Rtf properties can only choose yao can be achieved by writing code
?
Richtextboxshree=new richtextboxshree ();
Richtextboxshree. Size=new Size (500300);
This. Controls. The Add (richtextboxshree);
CSetLineSpace. SetLineSpace (richtextboxshree, 400);
Richtextboxshree. Text="sedfasdfasd sa \ n denier mage third-party \ n [";
Richtextboxshree. InsertLink (" baidu, "richtextboxshree. Text. Length);
Richtextboxshree. LinkClicked +=richtextLick;
Richtextboxshree. AppendText ("] fwqa embassy sadfgs each place first is justice is the justice of marat safin tell whether to tell the other local company operator; Stephen o leave home ah. Slovakia is ");
Richtextboxshree. AppendTextColorful (" ha ha ha ha, "Color. Red);
Richtextboxshree. ReadOnly=true;

One of the baidu is hyperlinks can click but how to remove the underline and change the color of the blue words?

CodePudding user response:

refer to the original poster yi sent network technology co., LTD in jiangsu response:
as title!
Excuse me RichTextBox after custom links in the default font color became blue and underlined, how to remove the underline can change the color of the hyperlinks ah


Can change color in hyperlinks font and color code may can override, modify the underline the didn't think method, I think you change is unlikely, because this is, after all, RTF

CodePudding user response:

Does this death must be blue when you must have the underline the custom? Waiting for master consult!

CodePudding user response:

WPF? WInform?

CodePudding user response:

WInform

CodePudding user response:

Such as the great god to their top first!

CodePudding user response:

The whole CSDN is no one has studied this thing?

CodePudding user response:

Attribute underline false try

CodePudding user response:

Tried to no good

CodePudding user response:

DetectUrls=false;//the world quiet,
  •  Tags:  
  • C#
  • Related