Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. MouseMove-Event without moving the mouse on Windows 7?

MouseMove-Event without moving the mouse on Windows 7?

Scheduled Pinned Locked Moved C#
csharpvisual-studioquestionworkspace
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bernhard Hiller
    wrote on last edited by
    #1

    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

    J P 2 Replies Last reply
    0
    • B Bernhard Hiller

      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

      J Offline
      J Offline
      jtobikidd
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • B Bernhard Hiller

        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

        P Offline
        P Offline
        Pawel Gielmuda
        wrote on last edited by
        #3

        Thanks it helped me too :)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups