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

  • Thread starter Sakharam Phapale
  • 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
 
M

Mohamoss

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top