如何添加一个文本框红线(如不良的拼写字)?红线、文本框、不良

2023-09-02 21:12:34 作者:冰戀是呼吸的痛

我们如何能产生下像下面的图片一个糟糕的拼写字红线的效果:

How can we produce the effect of the red line under a bad spelling word like the image below :

更新

我不希望使用谷歌或任何咒语程序。我想知道如何创建红线的效果。

I do not want to use Google or whatever spell program. I would like to know how to create the effect of the red line.

推荐答案

您可以使用的的RichTextBox 控制,这将允许您设置下划线样式和颜色的下划线文本的任何部分。

You can do this using a RichTextBox control, which will allow you to set the underline style and underline color on any portion of text.

和这里的href="http://geekswithblogs.net/pvidler/archive/2003/10/15/188.aspx">例如的做的正是你想要做的事情的