📅  最后修改于: 2022-03-11 14:49:21.911000             🧑  作者: Mango
//Set a ToolTip programmatically in Winforms with c#
// In this example, button1 is the control to display the ToolTip.
ToolTip toolTip1 = new ToolTip();
toolTip1.AutoPopDelay = 5000;
toolTip1.InitialDelay = 1000;
toolTip1.ReshowDelay = 500;
// Force the ToolTip text to be displayed whether or not the form is active.
toolTip1.ShowAlways = true;
// suppose you want to show ToolTip for Button (name as button1)
toolTip1.SetToolTip(button1, "Information you want to show here");