How to add ToolTip with delay for a button using WinForms in C#

1 Answer

0 votes
namespace WinFormsApp1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();

            ToolTip toolTip1 = new ToolTip();

            toolTip1.AutoPopDelay = 3000;
            toolTip1.InitialDelay = 1000;
            toolTip1.ReshowDelay = 500;
            
            toolTip1.ShowAlways = true;

            toolTip1.SetToolTip(button1, "toolTip Information");
        }
    }
}




/*
run:


*/

 



answered Mar 11, 2024 by avibootz
...