5

I have the property "AutoPopDelay" set to 60000, but every time I hover over an associated element, the balloon only stays open for 5 seconds even when my mouse pointer stays over stationary over the element.

Any ideas on what could be causing this?

Edit: I am using WinForms

sooprise
  • 22,657
  • 67
  • 188
  • 276

2 Answers2

3

Playing around with the tool tip control a bit it seems you can set AutoPopDelay to anything up to 32767 anything above that and it will default back down to 5000. My guess is in the background a short is being used rather then a int.

hrh
  • 658
  • 1
  • 14
  • 24
2

Reading the documentation for the AutoPopDelay on MSDN (link) the maximum time you can delay a popup is 5000 milliseconds.

If you want a longer duration, use the Show method to control the exact moment when the ToolTip is displayed.

...

However, I believe that you are trying to cure the symptoms and not the cause of your problem if you need a ToolTip to stay open for that long. A tool tip is, by definition, is "a small box with contextual information about the item the user to pointing to". If the user is unable to read what the tooltip is trying to suggest in 5 seconds, then it is not really a "tip" but an entire chapter from the help file.

Dennis
  • 20,275
  • 4
  • 64
  • 80
  • 2
    The documentation isn't accurate. – Hans Passant Oct 11 '10 at 13:38
  • @HansPassant: I thought that was the case as I've previously set that delay to be longer than 5 seconds. I'm currently checking Reflector to see what the actual behaviour is - I will update my answer. – Dennis Oct 11 '10 at 13:42
  • Don't bother, this is behavior baked into Windows code. Can't see that with Reflector. – Hans Passant Oct 11 '10 at 13:44
  • @HansPassant: Ah OK. I won't bother digging further. Thanks. ... Regardless of the accuracy of the MSDN documentation, I believe trying to force the tooltip to be open for that long is the real issue and that alternative solution should be found. – Dennis Oct 11 '10 at 13:51
  • I'm using: label1.Show("hi",this,60000); on the MouseHover even on label1, and I'm not seeing the balloon when I hover. Can you identify what I'm doing incorrectly? – sooprise Oct 11 '10 at 13:57