- Home
- 製 品
- 購 入
Order Online Ordering Info Resellers - ダウンロード
- サポート
サポート依頼(英語) ライブチャット(英語) ナレッジベース(英語) Webフォーラム(英語) オンラインドキュメント(英語) FAQ(英語) チュートリアル(英語) - サービス
インストール データ移行 インテグレーション 製品カスタマイズ カスタムソフト開発 - Community Editions
- お問い合せ
Back to Tutorials list
Back to Tutorials list
Display HTML/Plain Text Message In Desktop Application
If you need to display the HTML message in plain-text control (like Memo) in the desktop application, you should convert HTML text body into plain-text.
[C#]msg.Parser.HtmlToPlainMode = HtmlToPlainAutoConvert.IfNoPlain;[VB.NET]
msg.Parser.HtmlToPlainMode = HtmlToPlainAutoConvert.IfNoPlain
The code above converts the message to plain-text if it does not already have the plain-text body. You can then display plain-text body as below (assuming textBox1 is a text control on the form):
[C#]textBox1.Text += msg.BodyPlainText;[VB.NET]
textBox1.Text += msg.BodyPlainText