|
-
Feb 27th, 2003, 04:06 PM
#1
Thread Starter
Member
Insert Picture into a Rich Text Box?[Resolved]
How can I insert a picture into a ritch Text box?
And Or
How copy a bitmap/pictureFile to the clipboard?
Last edited by JesusFreak; Feb 28th, 2003 at 10:02 AM.
That if you confess with your mouth, "Jesus is Lord," and believe in your heart that God raised him from the dead, you will be saved.
-
Feb 27th, 2003, 05:02 PM
#2
Richtextbox1.Paste()
As for putting something in the clipboard, from where are you trying to get this picture?
CTRL+C
-
Feb 27th, 2003, 06:12 PM
#3
Thread Starter
Member
Originally posted by Edneeis
Richtextbox1.Paste()
As for putting something in the clipboard, from where are you trying to get this picture?
CTRL+C
I want to get the picture from a file.
Can you insert a picture into a Rich Text Box if it isn't on the clip board?
ex.
RichTextBox1.Insert("C:\test.bmp")
That if you confess with your mouth, "Jesus is Lord," and believe in your heart that God raised him from the dead, you will be saved.
-
Feb 27th, 2003, 10:43 PM
#4
VB Code:
'get image object from file
Dim img As Image = Image.FromFile("C:\windows\Soap Bubbles.bmp")
'set image in clipboard
Clipboard.SetDataObject(img)
'paste into the rtb
RichTextBox1.Paste()
You may want to write some code to preserve any items already in the clipboard if you want. Just store it as an object then set it again after the paste.
-
Feb 27th, 2003, 11:44 PM
#5
Thread Starter
Member
That if you confess with your mouth, "Jesus is Lord," and believe in your heart that God raised him from the dead, you will be saved.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|