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. Visual Basic
  4. Tooltip

Tooltip

Scheduled Pinned Locked Moved Visual Basic
tutorialquestion
6 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.
  • E Offline
    E Offline
    ecentinela
    wrote on last edited by
    #1

    There is any way to show a tooltip within the need of stop the mouse over a control? For example show the tooltip when a timer counts to 5 seconds... Thanks

    B 1 Reply Last reply
    0
    • E ecentinela

      There is any way to show a tooltip within the need of stop the mouse over a control? For example show the tooltip when a timer counts to 5 seconds... Thanks

      B Offline
      B Offline
      Briga
      wrote on last edited by
      #2

      Yes. Use the Tooltip control. Add it to the form. Then to add the tooltip: myTooltip.SetToolTip(MyControl,"This is the text") where myTooltip is the tooltip you created above and myControl the one you want the message associated with. If you look in the doc you can also specify the timing.

      E 1 Reply Last reply
      0
      • B Briga

        Yes. Use the Tooltip control. Add it to the form. Then to add the tooltip: myTooltip.SetToolTip(MyControl,"This is the text") where myTooltip is the tooltip you created above and myControl the one you want the message associated with. If you look in the doc you can also specify the timing.

        E Offline
        E Offline
        ecentinela
        wrote on last edited by
        #3

        Yes, I know. But this tooltip will show when user stops the cursor over the control. I want to show it with no action from the user. Thanks anyway

        D 1 Reply Last reply
        0
        • E ecentinela

          Yes, I know. But this tooltip will show when user stops the cursor over the control. I want to show it with no action from the user. Thanks anyway

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          You really have to read the documentation for the Tooltip[^] class. There are properties that let you control how fast the Tooltip shows up (by default, a half second), how long it stays displayed, and others. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          E 1 Reply Last reply
          0
          • D Dave Kreskowiak

            You really have to read the documentation for the Tooltip[^] class. There are properties that let you control how fast the Tooltip shows up (by default, a half second), how long it stays displayed, and others. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

            E Offline
            E Offline
            ecentinela
            wrote on last edited by
            #5

            But that I want is to show the tooltip without the cursor. Maybe I'm not explaining well... I'm reading the link you share and in one of the first lines says "The ToolTip class allows you to provide help to users when they place the mouse cursor over a control." I think that this explanation answer my question. It's not posible to show the tooltip if the cursor don't moves over him.

            D 1 Reply Last reply
            0
            • E ecentinela

              But that I want is to show the tooltip without the cursor. Maybe I'm not explaining well... I'm reading the link you share and in one of the first lines says "The ToolTip class allows you to provide help to users when they place the mouse cursor over a control." I think that this explanation answer my question. It's not posible to show the tooltip if the cursor don't moves over him.

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              ecentinela wrote: It's not posible to show the tooltip if the cursor don't moves over him. Nope. That's not the defined behavior of the ToolTip component. If you want Tooltips showing over all of your controls without the mouse being anywhere near them, you'll have to draw the ToolTips yourself. This is not a good idea though. You'll end up cluttering your user interface with all kinds of information that the user doesn't need when they become familiar with your app. Think of if this way. Have you ever seen a Windows application that does this? Why not? Because the user interface was (hopefully!) well thought out to begin with. It should be intuitive to use without all the help showing on every control. If you want to show a little help with whatever control the mouse passes over, other applications tend to put a short message in the status bar of the application window describing the functionality of that control. The Windows user experience should be consistant acrossed all, or most, of the applications the user runs. If you deviate from the accepted, and more importantly defined norm's in the Windows User Interface Design Guide, you'll end up confusing the user more than you think you're helping them. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

              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