Mouseover event

robbrownuk
robbrownuk used Ask the Experts™
on
Hi experts...

I have a number of "Shapes" on my form in a control array (index). I would like to display a variable string as tool tip text when the mouse is placed over the shape.

Does anyone know how to do this?

Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Is this VB6 or VB.NET?

Author

Commented:
VB6
High School Computer Science, Computer Applications, Digital Design, and Mathematics Teacher
Top Expert 2009
Commented:
From the help file:

Using Shape and Line Controls
Shape and line controls are useful for drawing graphical elements on the surface of a form. These controls don't support any events; they are strictly for decorative purposes.

You could use the image or picturebox controls to display your "shapes" and then have the ability to trap the mousemove event.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial