将RichTextBox内容发送到另一个应用程序 [英] Send RichTextBox content to the other application
本文介绍了将RichTextBox内容发送到另一个应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个RichTextBox,用户可以编写文本并将图标/图像附加到RichTextBox中.
如果我想通过TCP套接字将RichTextBox内容转换为其他应用程序.并且另一个应用程序能够显示/显示RichTextBox内容(带有文本,图像和图标).
I have a RichTextBox, the user is able to write the text and attached the icon/image into the RichTextBox.
If i want to convert the RichTextBox content to the other application via TCP socket. And the other application is able to display/show the RichTextBox content (with text, image and icon).
May I know how can I do that?
推荐答案
您应该将richtextbox
内容发送为richtextformat
即(rtf
)而不是text
(txt
),以保留richtextbox
控件的格式. Richtext格式将保留图像,图标,文本和完成的所有其他文本格式.
You should send therichtextbox
contents asrichtextformat
i.e (rtf
) and not astext
(txt
) so as to preserve the formatting of therichtextbox
control. richtext format will preserve images, icon, text and any other text formatting done.
我需要通过TCP套接字将内容发送到另一个应用程序,并由另一个应用程序(java,C ++)共享).有关该过程的任何建议以及我可以参考的任何示例代码?
I need to send the content to the other application via TCP socket and share by the other application (java, C++). Any suggestion on the procedure and any sample code I can ref to?
这篇关于将RichTextBox内容发送到另一个应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文