OK here's the code...

VB Code:
  1. Dim x As New OLEObject
  2. r1.OLEObjects.Add , , "d:\heq.bmp"
  3. 'r1.AutoVerbMenu = False
  4. r1.SelStart = Len(r1.SelText)
  5. 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?