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 に 1 つのフィールドがあります。名前は「 Field1 」です。Richtextbox テキスト (太字、斜体などを含む) を保存できます。コード「Richtextbox1.rtf」を使用
しかし、「Richtextbox1.rtf=dt.rows(0).item(0).tostring」を使用して表示しようとすると、
「ファイル形式が無効です」と表示されます。
解決策は何ですか。
デバッガーで dt.rows(0).item(0).tostring の内容を確認しましたか? また、ToString() はプロパティではなくメソッドである必要があります。「()」が抜けていたようです。
いいえ、VB.Net です。C# でのみ string() を使用します。