WinForms PictureBox with tooltips?

J

Jon

Hello all,

I have a little c# app that draws rectangle onto an image loaded into
a PictureBox, this all works fine. However, I'd like to make it such
that a tooltip will appear when I hover over one of the newly drawn
rectangles. Any suggestions on how I could do this?

Regards.
 
D

dotNetDave

I think you are going to have to pretty much do it manually... i.e. keep
track of your rectangle coordinates, then during the MouseHover event of the
control, when the x/y coordinates are within one of your rectangles, shot the
tooltip.

David

======================================
David McCarter [Microsoft MVP]
www.dotNetTips.com
David McCarter''''s .NET Coding Standards available at:
http://codingstandards.notlong.com
 

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