在Richtextbox中粘贴并保存!! [VB 2010] [英] Paste and Save in Richtextbox !! [VB 2010]

查看:85
本文介绍了在Richtextbox中粘贴并保存!! [VB 2010]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨论坛!



我对Richtextbox有疑问:



在我的表格上:1按钮SAVE,1 Richtextbox1



我使用Ctrl + C和Ctrl + V将文本和图像从网站和MS Word复制并粘贴到Richtextbox,

但我不能,只有文字粘贴!! < - 我该怎么做才能解决这个问题!!!



(可能需要:

1 / My.Computer.Clipboard .ContainsData方法 - http://msdn.microsoft.com/en- us / library / ay1t2t3x%28v = vs.90%29.aspx



2 / My.Computer.Clipboard.GetFileDropList Method - http://msdn.microsoft.com/en-US/library/db41awbz%28v= vs.90%29.aspx





最后一个问题:我如何在Richtextbox中保存所有内容? ? (文字和图片)



感谢您的阅读。



抱歉我的英文不好!

Hi forum!

I have a problem with Richtextbox :

On my form : 1 button SAVE, 1 Richtextbox1

I used Ctrl+C and Ctrl+V to copy and paste Text and Image from Website and MS Word to Richtextbox,
but I can''t, only text pasted !! <- What should i do to solve this problem !!!

(May be need :
1/ My.Computer.Clipboard.ContainsData Method - http://msdn.microsoft.com/en-us/library/ay1t2t3x%28v=vs.90%29.aspx

2/ My.Computer.Clipboard.GetFileDropList Method - http://msdn.microsoft.com/en-US/library/db41awbz%28v=vs.90%29.aspx
)

And the last question : How i can save all things in Richtextbox ?? (both Text and Image)

Thanks for reading.

Sorry for my bad english !!!

推荐答案

您可能直接处理图像,

如果要复制图像在任何图像编辑器中打开图像然后复制并将图像粘贴到richtextbox中



保存richtextbox



you might be coping the image directly,
if you want to copy a image open the image in any image editor and then copy and paste the image in richtextbox

to save the richtextbox

richtextbox.SaveFile([path])


这篇关于在Richtextbox中粘贴并保存!! [VB 2010]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆