What makes the .NET ToolTip not the second time?

Using the VB.NET 2008 desktop project, I created a simple tooltip in an event Form_Loadand attached it to a form button. It looks great when the user hovers over the button, but the time runs out after 30 seconds (which I set using the popup delay, etc.). But as soon as it disappears, the second time the user hovers over the button, a tooltip never appears. Almost like he dies a natural death! Any ideas on how to fix this?

+3
source share
2 answers

It turns out that the ToolTipcomponent will not display a tooltip a second time if the first timer is disabled. I believe this is a “feature” and not a mistake, but I agree that this is not the expected behavior for many people. This was reported by Microsoft , who believe that it is "too big a question to invest in fixing it."

The answer to this similar question offers some possible workarounds, although I personally have not tried any of them, because I never need a hint displayed for this for a long time, which it has been timed to.

, , - , : ToolTip component Active False, True MouseEnter , . "" "", - .

, , ( ) : ToolTip , . , , , .

, 30 , - 32 . , .NET Framework, Win32 ToolTip, . - 16- , 32767, 32 . Raymond Chen .

+5

mouseover ( , , ) , , . activeivate_tooltip.

Private Sub reactivate_tooltip(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox5.MouseEnter
        ToolTip1.Active = False
        ToolTip1.Active = True
End Sub
0

Source: https://habr.com/ru/post/1781947/


All Articles