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. Picturebox tooltips

Picturebox tooltips

Scheduled Pinned Locked Moved C#
5 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.
  • G Offline
    G Offline
    Gareth H
    wrote on last edited by
    #1

    Hi, I have a picture box that has mousemove event. I check to see whether the mouse is between certain cords and if it matchs one of the if statements, it should display a tooltip. The problem is that since im using the mousemove event the tooltip is being redraw everytime the mouse is moved which causes some visual problems, e.g: the picture box displays alot of tooltips. Any ideas? Regards, Gareth.

    J 1 Reply Last reply
    0
    • G Gareth H

      Hi, I have a picture box that has mousemove event. I check to see whether the mouse is between certain cords and if it matchs one of the if statements, it should display a tooltip. The problem is that since im using the mousemove event the tooltip is being redraw everytime the mouse is moved which causes some visual problems, e.g: the picture box displays alot of tooltips. Any ideas? Regards, Gareth.

      J Offline
      J Offline
      Judah Gabriel Himango
      wrote on last edited by
      #2

      Create a boolean field in your class indicating if a tool tip is being shown. Only show a new tool tip if the field indicates there is no tool tip being shown.

      Tech, life, family, faith: Give me a visit. I'm currently blogging about: The Lord's Prayer in Aramaic song (audio) The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

      G 1 Reply Last reply
      0
      • J Judah Gabriel Himango

        Create a boolean field in your class indicating if a tool tip is being shown. Only show a new tool tip if the field indicates there is no tool tip being shown.

        Tech, life, family, faith: Give me a visit. I'm currently blogging about: The Lord's Prayer in Aramaic song (audio) The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

        G Offline
        G Offline
        Gareth H
        wrote on last edited by
        #3

        Judah, I cant do that really since i want to show different tooltips for different areas of the picture box, thus i'd need to create a bool for each tooltip which seems like abit of a hash. Surly theres a better way? Regards, Gareth.

        M 1 Reply Last reply
        0
        • G Gareth H

          Judah, I cant do that really since i want to show different tooltips for different areas of the picture box, thus i'd need to create a bool for each tooltip which seems like abit of a hash. Surly theres a better way? Regards, Gareth.

          M Offline
          M Offline
          M Hall
          wrote on last edited by
          #4

          if you use the variable like he suggested, then check the tooltip text to the text you want to show if they are the same don't update otherwise update the tooltip

          G 1 Reply Last reply
          0
          • M M Hall

            if you use the variable like he suggested, then check the tooltip text to the text you want to show if they are the same don't update otherwise update the tooltip

            G Offline
            G Offline
            Gareth H
            wrote on last edited by
            #5

            Cheers, that fixed the problem. Regards, Gareth.

            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