public static void SetToolTip(Control control, string text, bool ShowAlways = false, int timeToDisplay = 5000)
{
// Prevent cross thread errors
if (control.InvokeRequired)
{
control.Invoke((Action)delegate
{
ToolTip tt = Tipsy.GetControlToolTip(control);
tt.ShowAlways = ShowAlways;
tt.AutoPopDelay = timeToDisplay;
tt.SetToolTip(control, text);
});
}
else
{
ToolTip tt = GetControlToolTip(control);
tt.SetToolTip(control, text);
}
}