MouseMove-Event without moving the mouse on Windows 7?
-
Hi there, in an application which I developed on a Windows XP computer in Visual Studio 2005 Express with C#, I set a tooltip in a MouseMove event of a panel. On that environment, everything looks fine. Then I loaded the source code on a Windows 7 64 bit computer in Visual Studio 2005 Professional, started the application, and found that the tooltip was terribly flickering, even when I did not move the mouse. I added variables for storing the last mouse position, and in the MouseMove event I leave now the function when the position has not changed. Now the tooltip looks fine on Win7 also. For debugging purposes, I set a break point on that return statement, I really get there... I.e. a MouseMove event is fired though the mouse is not moving. What are your experiences with MouseMove and tooltips with respect to Windows 7? Looking forward to your statement. Regards, Bernhard
-
Hi there, in an application which I developed on a Windows XP computer in Visual Studio 2005 Express with C#, I set a tooltip in a MouseMove event of a panel. On that environment, everything looks fine. Then I loaded the source code on a Windows 7 64 bit computer in Visual Studio 2005 Professional, started the application, and found that the tooltip was terribly flickering, even when I did not move the mouse. I added variables for storing the last mouse position, and in the MouseMove event I leave now the function when the position has not changed. Now the tooltip looks fine on Win7 also. For debugging purposes, I set a break point on that return statement, I really get there... I.e. a MouseMove event is fired though the mouse is not moving. What are your experiences with MouseMove and tooltips with respect to Windows 7? Looking forward to your statement. Regards, Bernhard
I just had the exact same experience with tooltip flickering inside of a DataGridView. This flicker was also found only on Windows 7 and not on XP and was caused by the MouseMove event firing repeatedly in Windows 7 when the mouse is not moving. For now I have applied your same fix. If I find the underlying cause I will try to follow up. Jason
-
Hi there, in an application which I developed on a Windows XP computer in Visual Studio 2005 Express with C#, I set a tooltip in a MouseMove event of a panel. On that environment, everything looks fine. Then I loaded the source code on a Windows 7 64 bit computer in Visual Studio 2005 Professional, started the application, and found that the tooltip was terribly flickering, even when I did not move the mouse. I added variables for storing the last mouse position, and in the MouseMove event I leave now the function when the position has not changed. Now the tooltip looks fine on Win7 also. For debugging purposes, I set a break point on that return statement, I really get there... I.e. a MouseMove event is fired though the mouse is not moving. What are your experiences with MouseMove and tooltips with respect to Windows 7? Looking forward to your statement. Regards, Bernhard
Thanks it helped me too :)