Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: How to Open Picture pasted on RichTextBox


Message #1 by "Charoen Leetrakulnumchai" <smesol01@c...> on Mon, 25 Dec 2000 01:57:00 -0000
How about this,

RichTextBox property "DragMode" = vbManual.
And you copy and paste your picture on this RichTextBox.
And then you double click THE SHORT CUT of your picture.
If the file name extensions of your picture (gif, jpg, bmp etc...) are
registered with your operating system, an associated program will
automatically open such as Internet Explore or Adobe Photo Shop etc...

Or, you write source code on RichTextBox1_DblClick() event,

Private Sub RichTextBox1_DblClick()
  Dim RetVal
  'RetVal = Shell("%SystemRoot%\System32\mspaint.exe", 1)
  RetVal = Shell("c:\winnt\System32\mspaint.exe c:\winnt\Coffee Bean.bmp",
1)
End Sub

I hope that is what you want.

Katsumi Ohsawa
PALSYS Software Co., Ltd. (Thailand)
kosawa@p...
kosawa@p...
katsumi_ohsawa@h...

-----Original Message-----
From: Charoen Leetrakulnumchai [mailto:smesol01@c...]
Sent: Monday, December 25, 2000 8:57 AM
To: professional vb
Subject: [pro_vb] How to Open Picture pasted on RichTextBox

Dear
   I insert picture into RictTextBox controls using copy and paste.
Now I need to edit the picture. How can I open the picture by click on it
as it stay on RichTextbox ?



---
You are currently subscribed to pro_vb as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-pro_vb-$subst('Recip.MemberIDChar')@p2p.wrox.com

  Return to Index