Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27514

ToolTip Stutter

$
0
0
I have a program where it would be ideal to have the tooltip show the value under the mouse pointer as it moves around a panel. This value is not going to change often, but it does change.

My initial thought was to use MouseHover, rather than MouseMove, because the former would happen less frequently than the latter. Unfortunately, it happens TOO infrequently, and the tooltip wouldn't change at all. I then switched to using MouseMove. This does show the value under the mouse, and it changes as I move over different regions. However, it also keeps flickering constantly. As far as I can determine, changing the Tooltip is sufficient to trigger a MouseMove event, even though the mouse location doesn't change at all.

One possible way around that would be to check the value currently displayed, and only change the tooltip when needed. That should interrupt the feedback loop and stop the flickering when the mouse isn't being touched. However, I was wondering if there was a better approach?

Viewing all articles
Browse latest Browse all 27514

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>