How to determine when to display a tooltip?

I am writing a calendar control in .Net WinForms that will show a tooltip for each date.

What is the best way to determine when to display a tooltip?

Show it right away MouseMoveso that it gets in the way, so I would like it to show when the mouse hangs over each date cell.

The event is MouseHoverfired only on the first hover after MouseEnter, so I cannot use it.

What is the best way to do this?

EDIT : I am using WinForms

+3
source share
3 answers

Enter Hover SystemInformation.MouseHoverTime.

- , MouseMove , . , reset , " ".

+6

AutoPopDelay, InitialDelay ReshowDelay ToolTip, .

, , "" . , , , . , , (, , , , !), , .

A MSDN :

 AutoPopDelay = 5000;
 InitialDelay = 1000;
 ReshowDelay = 500;
 // Force the ToolTip text to be displayed whether or not the form is active.
 ShowAlways = true;

, . ToolTip.Show(). , , , , , . , , , reset.

0

, (ASP.NET? Forms? WPF?), :

  • ASP.NET ToolTip ( Label, ), .
  • , , ToolTip, .
  • WPF Label.ToolTip XAML.

, , , .

, , , , .

: - , - , . , "", ( ), " " "(.. ).

0

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


All Articles