Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
The story is:
I have custom control(Display) that displays image returned by drawer class. Display control has some stuff to set what should be drawn and picture box to show the image.
On MouseMove event on picturebox I set what should be dislayed in tooltip

It worked fine on WinXp, not sure about vista ;) But recently we have moved to win7 x64 and problems begun. For example when we have cursor over this control and do refresh or zoom in/out we need to move cursor somewhere else and then it get refreshed. Same while loading the form if cursor is where the control will be loading just waits till we move the cursor out.

Any one know how to solve this? Thanks in advence:thumbsup:
Posted

1 solution

Seems you need to update tooltip content on and on performing any actions (zoom in/out etc.) you mentioned. The property is set/updated in MouseMove event so if any data will changed (dunno what exacly youre displaying in tooltip) the tooltip remain the same (no mouse move performed so nothing to update) till mouse move which is expected behaviour for me. The solution is as i said - set tooltip value ance again while zooming or create some asynchronous updater of tooltip value.
 
Share this answer
 
v2
Comments
Pawel Gielmuda 9-Jul-10 3:35am    
I think this won't solve this because the same code works ok on XP
helianthus87 9-Jul-10 3:54am    
Then you need to dig in differances between WinForms in WinXp and Win7. I'll check my solution today after work becouse it seems universal no matter the platform.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900