RichTextBox からテキストをコピーして WebBrowser に貼り付けようとしています。
私はこのコードを使用します:
WebBrowser wb = new WebBrowser();
wb.Navigate("about:blank");
richTextBox1.SelectAll();
richTextBox1.Copy();
wb.Document.ExecCommand("Paste", false, null);
wb.Document常に空のドキュメントを表示します。DocumentTextあげです。<HTML> </HTML>\0_Document.Bodynull
私は何を間違っていますか?