use tooltip c# code example

Example 1: c# winforms tooltip

//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");

Example 2: c# asp.net hover tooltip

<form runat="server">
<asp:Button id="button1" Text="Submit" runat="server"
ToolTip="This is an example-button"/>
</form>