How to insert the image into the richtextbox control and catch the mouse click event of that image.

  • Thread starter Thread starter Sakharam Phapale
  • Start date Start date
S

Sakharam Phapale

Hi All,

How to insert the image into the richtextbox control and catch the mouse
click event of that image.

Thanks in advance,
Sakharam Phapale
 
Hi Sakharam
To insert image into your Rich textbox you can
Dim img As New System.Drawing.Bitmap(imgPath)
Clipboard.SetDataObject(img)
rtb.Paste()
then you can use mouse events to do get the indices of the mouse to check
if you are inside the image or not then act accordingly
Mohamed M .Mahfouz
Developer Support Engineer
ITWorx on behalf of Microsoft EMEA GTSC
 
Back
Top