Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change delay time ToolTipText on ToolStripButton

Application is in c#/WinForm I'm using ToolStrip with button.

I setted ToolTipText, it is working.

Can I change the delay time to longer value ?

In other controls I'm using ToolTip control and it is possible (AutoPopDelay value).

like image 988
Krzysztof Adamowicz Avatar asked Apr 18 '26 12:04

Krzysztof Adamowicz


1 Answers

In my other answer, I've showed how you can modify the initial delay, but as pointed out by Elmue in the comments, it looks like OP is looking for AutoPopDelay which is the duration of showing the tooltip.

To do so, you can get the internal ToolTip of ToolStrip and set its properties:

private void Form1_Load(object sender, EventArgs e)
{
    var toolTip = (ToolTip)this.toolStrip1.GetType()
        .GetProperty("ToolTip",
        System.Reflection.BindingFlags.NonPublic |
        System.Reflection.BindingFlags.Instance).GetValue(toolStrip1);
    toolTip.AutoPopDelay = 10000;
}
like image 165
Reza Aghaei Avatar answered Apr 21 '26 01:04

Reza Aghaei



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!