|
-
Jun 30th, 2003, 08:55 AM
#1
Thread Starter
Frenzied Member
Rich textbox....
OK here's the code...
VB Code:
Dim x As New OLEObject
r1.OLEObjects.Add , , "d:\heq.bmp"
'r1.AutoVerbMenu = False
r1.SelStart = Len(r1.SelText)
Set x = r1.OLEObjects.Add(, , "d:\java.gif")
This is successfully embedding bmp and gif into RichTextbox but when adding GIF.. it is also opening the program gif file is associated with..
Is there any way to stop this program from opening?
-
Jun 30th, 2003, 03:11 PM
#2
Thread Starter
Frenzied Member
-
Jul 1st, 2003, 08:28 AM
#3
Thread Starter
Frenzied Member
Hey ppl come up..!!!!
This place was never so dump!!!!!
-
Jul 1st, 2003, 11:17 AM
#4
Junior Member
i know a way to close it when its open. is that oke??
-
Jul 1st, 2003, 02:56 PM
#5
Thread Starter
Frenzied Member
Hmm.. API??? that captures the started window HWND and then use send this Wnidow WM_EXIT???? I know this one.. is there any other way?
-
Jul 2nd, 2003, 01:44 AM
#6
Addicted Member
well, this doesn't really answer your question but may offer an explanation. The RichEdit component doesn't natively support any image format but .bmp. Whenever you add an image of a different format to a RichEdit window (like wordpad), the data is actually converted to a bmp. My guess is that when you add the gif, RichEdit is making the conversion as well as passing the .gif handling off to the program handling gif images. The best way to avoid the problem is to simply use bitmaps.
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
|