在C#中的richtextbox中的某些位置添加图片

发布于 2024-08-12 06:53:35 字数 174 浏览 1 评论 0原文

好吧,

问题#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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

涫野音 2024-08-19 06:53:35

有一些第三方拼写检查组件可以附加到普通文本框。

给自己写一个清单,列出你需要用它实现的一些事情,然后获取其中几个的试用版本。测试它们并购买最好的。 (这是一个示例

另请查看 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.

晨光如昨 2024-08-19 06:53:35

尝试此处获取 RichTextBox。您需要在用户键入字符时检查字符并将其替换为适当的图像。

Try here for the RichTextBox. You'll need to check the characters as users type them and replace them with the appropriate image.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文