How to add to a textbox the red line (like bad spelling in Word)?

后端 未结 4 1775
夕颜
夕颜 2021-01-05 22:23

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

alt text http://img505.imageshack.us/img505/7253/options285x395rg9.th.

4条回答
  •  南方客
    南方客 (楼主)
    2021-01-05 22:50

    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.

    And here's an example doing exactly what you want to do.

提交回复
热议问题