HAVE SHAPE MOUSE_MOVE EVENT?
I need to show a tooltip on shape(0)
HAVE SHAPE MOUSE_MOVE EVENT
-
- 5StarLounger
- Posts: 703
- Joined: 27 Jun 2021, 10:46
Re: HAVE SHAPE MOUSE_MOVE EVENT
Shape controls do not support any events, nor do they have a tooltip property.
If you need these things you may be better off using a Picturebox instead of a Shape, assuming your shapes are rectangles/squares (and even if they are not there are some underhand tricks - e.g using SetWindowRgn API call - to make pictureboxes in different shapes)
or ,you could write your own code to detect whether the mouse is over a particular shape, and then more code to display a fake tooltip-like popup at the correct place. But using a Picturebox will be easier.
If you need these things you may be better off using a Picturebox instead of a Shape, assuming your shapes are rectangles/squares (and even if they are not there are some underhand tricks - e.g using SetWindowRgn API call - to make pictureboxes in different shapes)
or ,you could write your own code to detect whether the mouse is over a particular shape, and then more code to display a fake tooltip-like popup at the correct place. But using a Picturebox will be easier.
Last edited by SpeakEasy on 13 Jun 2024, 11:05, edited 1 time in total.
-
- PlatinumLounger
- Posts: 4554
- Joined: 26 Apr 2010, 17:36
Re: HAVE SHAPE MOUSE_MOVE EVENT
TKS for suggestion.SpeakEasy wrote: ↑13 Jun 2024, 09:55Shape controls do not support any events, nor do they have a tooltip property.
If you need these things you may be better off using a Picturebox instead of a Shape, assuming your shapes are rectangles/squares (and even if they are not there are some underhand tricks - e.g using SetWindowRgn API call - to make pictureboxes in different shapes)
or ,you could write your own code to detect whether a mouse is over a particular shape, and then more code to display a fake tooltip-like popup at the correct pace. But using as Picturebox will be easier.
i yhinking....