rich text box control cannot paste
when i select any thing(it may be image or text from internet explorer) and paste it in a msword it has got pasted including image and text
when i do the same copy paste in my application which contain the richtextbox control i am unable to paste the images and i can paste only the links of the images
can any one help me in pasting the images and text

rich text box control cannot paste.
Sam Vella
So if you are being passed a link to the image, can you not parse the string being copied for <img scr= tags
Once you have the link, put in the image via code.
JavaBoy
Bazzer
u might have tried by copy pasting the images from ur system can u please try by copying and pasting from internet explorer or any brouser to the richtextbox control u will be able to to get only the linsk but no images
in my application i have placed a rich text box control and when the user copy's any thing from the brouser and pastes in the richtextbox control it should be pasted as how it gets pasted in the msword
CodeScribler
JRGuilbault
i think with vb.net richtextbox control we cant do this
my requirement is
when we copy some thing from the web or internet or from browser and paste it in the microsoft word (ms word) document how it appears
the same appearence should be there when i copey and paste in the richtextbox control
one of the main difference between copying and pasting in the msword and richtextbox is in rtb image link is pasted insted of image in msword image is pasted
cplusplus1
Hi,
Try this,
Before you run your program hit the PrintScreen button on your keyboard.
Now run the program and left-click in the richTextBox.
PASTE or Ctrl+V and you should get the window image within the richTextBox.
This works for me without altering any of the richTextBox properties.
Regards,
S_DS
Vamshi Raghu
i have tried this it is working the screen shot has got pasted in the rich text box control
but
my requirement is to paste the content from the brouser to the richtextbox control
u try this please,
in a new project take one richtextbox control
and open the bouser and navigate www.google.com and select some text and the google image and paste it in the richtextbox control u will observe that the google image not got pasted but a link of that has got pasted
again try pasting the same clipboard content into an ms word document u will observe that u have got image pasted
my requirement is to paste the text and image from the brouser into the rich text box control
can any one help me please
Ultrawhack
Andriy G.
I think the IE control lets you modify the contents... And you wouldn't have to make your own layout engine.
Otherwise, get busy making your own little 'mini browser' and layout engine.
Arska
regthesk8r
Assume RT1 is my richtext box.
You'd have to download the file from the link to a temp dir.
From there load the image into a control, and add the control to the rtf
Dim img As New PictureBox
img.BackgroundImage = Image.FromFile("c:\pic2.bmp") 'replace with your downloaded file.
RT1.Controls.Add(img)
RT1.Controls(0).Location = New Point(20, 20)
Dustin
GKW82
William
HMote
Dustin ,
can u please give me the code for how to put the image once if i have the link
thanks
TravisPnAZ
is there any other way to do this other than downloading the file
my requirement is to simply copy the content from the brouser and paste it in the rich text box and it should appear similar to how we copy and paste in the ms word
plz help me
thanks for ur code dustin