|
-
May 1st, 2000, 04:23 PM
#1
Thread Starter
Addicted Member
how to add a picture(.gif) to a richtextbox???
add the picture to the text...
wenn i add a picture in ms word and then drag/drop it to the richtextbox in my app (while it's running...) then it worx..... but how can i do this scripted????
thx in advance
m€
-
May 1st, 2000, 04:56 PM
#2
Frenzied Member
Ich denke daß Ihre "Font Editor" ist kaputt!
-
May 1st, 2000, 05:37 PM
#3
Thread Starter
Addicted Member
die tastatur hat leider ein paar fehler.....

and what's up with the picturein the rtfbox???
-
May 2nd, 2000, 09:33 PM
#4
Frenzied Member
Have you tried looking at the RTF Code in the Box, it's the textRTF property, look at this when you paste your picture, then try copy what it does
-
May 3rd, 2000, 02:25 AM
#5
What you can do is to use an invisible PictureBox. You will have to load picture file into that PictureBox and then paste it into a RichTextBox:
Code:
Option Explicit
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Const WM_PASTE = &H302
Private Sub Command1_Click()
With Picture1
.AutoSize = True
.Visible = False
.Picture = LoadPicture("C:\Giggling.bmp")
End With
Clipboard.Clear
Clipboard.SetData Picture1.Image, vbCFBitmap
Call SendMessage(RichTextBox1.hwnd, WM_PASTE, 0, 0)
End Sub
-
May 3rd, 2000, 03:10 AM
#6
Das wetter ist sehr schon!
Ahh, you can't beat proper English edyoocayshun.
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
|