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

后端 未结 4 1750
夕颜
夕颜 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.

    0 讨论(0)
  • 2021-01-05 22:54

    use google's spellchecker

    http://www.asp101.com/articles/jeremy/googlespell/default.asp

    0 讨论(0)
  • 2021-01-05 22:58

    This page shows how to owner-draw a TextBox to draw the wavy red line.

    0 讨论(0)
  • 2021-01-05 23:02

    You can use rich edit control's properties and methods to do the drawing of the wavy lines. For more information visit this site: http://geekswithblogs.net/pvidler/archive/2003/10/15/188.aspx

    0 讨论(0)
提交回复
热议问题