如何在 MYSql DB 中存储 Richtextbox 格式化内容 '直接使用VB.Net

发布于 2024-08-05 05:52:45 字数 197 浏览 5 评论 0原文

我在 MYSQL 数据库中有一个字段。名称是“Field1”。我可以存储 Richtextbox 文本(它包含粗体、斜体等)。使用代码“Richtextbox1.rtf”

但是当我尝试使用“Richtextbox1.rtf=dt.rows(0).item(0).tostring”显示时,

它显示“文件格式无效”。

解决方案是什么。

I have one Field in MYSQL DB. Name is ' Field1 '. I can store the Richtextbox text(it contains Bold, Italic, Etc). using the code ' Richtextbox1.rtf '

But when i am trying to display using 'Richtextbox1.rtf=dt.rows(0).item(0).tostring ',

It shows 'File Format is not Valid '.

What is the Solution.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

淡墨 2024-08-12 05:52:46

不,它是 VB.Net。在 C# 中,我们只使用 string()。

No. It is a VB.Net. In C# only we use string().

撩人痒 2024-08-12 05:52:45

您是否在调试器中检查了 dt.rows(0).item(0).tostring 的内容?另外,ToString() 应该是一个方法,而不是一个属性。看来你漏掉了“()”。

Have you checked the contents of dt.rows(0).item(0).tostring in debugger? Also, ToString() should be a method, not a property. You missed "()" it seems.

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