在C#中的richtextbox中的某些位置添加图片
好吧,
问题#1:我有一个富文本框,我喜欢向其中添加情感,因此,例如,如果文本框中有“:)”,我希望在其位置上添加笑脸图片。
问题#2:我有一个普通的文本框,而不是富文本框,我想为其添加某种拼写检查。 如果可能的话,它会在您键入 ~id 时突出显示拼写错误的单词,
例如代码示例。谢谢!
Alright,
Question #1: well i have a richtextbox, and id like to add emotions to it, so for instance, if ":)" was in the textbox, id want the picture of a smiley face in its place.
Question #2: i have a normal textbox, NOT a richtextbox, and id like to add some sort of spell check to it. that highlights the mis-spelt words as you type
~id like code examples if possible. thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有一些第三方拼写检查组件可以附加到普通文本框。
给自己写一个清单,列出你需要用它实现的一些事情,然后获取其中几个的试用版本。测试它们并购买最好的。 (这是一个示例)
另请查看 http://www.codeproject.com/KB/recipes/spellchecker_pp.aspx - 这可能会有所帮助。
There are some third party spell checking components around that can be attached to normal text boxes.
Write yourself a checklist showing the few things you need to achieve with it then grab a trail version of a couple. Test them and buy the best one. (Here's an example)
Also check out http://www.codeproject.com/KB/recipes/spellchecker_pp.aspx on CodeProject - this may help.
尝试此处获取 RichTextBox。您需要在用户键入字符时检查字符并将其替换为适当的图像。
Try here for the RichTextBox. You'll need to check the characters as users type them and replace them with the appropriate image.