Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 MYSQL DB 中有一个字段。名称是“Field1”。我可以存储 Richtextbox 文本(它包含粗体、斜体等)。使用代码“Richtextbox1.rtf”
但是当我尝试使用 'Richtextbox1.rtf=dt.rows(0).item(0).tostring' 显示时,
它显示“文件格式无效”。
解决办法是什么。
不,这是一个 VB.Net。只有在 C# 中我们使用 string()。
您是否在调试器中检查了 dt.rows(0).item(0).tostring 的内容?此外, ToString() 应该是一个方法,而不是一个属性。您似乎错过了“()”。