Click here to Skip to main content
16,021,432 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 !!!
Posted
Updated 22-Mar-13 22:15pm
v2

1 solution

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

C#
richtextbox.SaveFile([path])
 
Share this answer
 
Comments
phuongcei 24-Mar-13 4:02am    
I can't. Sometimes image was copied and pasted into Richtextbox but not always. And when i saved contains in Richtextbox only text saved..!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900