Dynamic ToolTip: update the shown value
-
Hi all, I'm trying to show a tooltip for a button. I have a StopWatch, the purpose is to show the elapsed Time into the tooltip string. and to get the refreshed value each time the mouse is under the button I'm doing like that this.toolTip1.SetToolTip(button1, Stopwatch.Elapsed.ToString()); but the tooltip shown have always the same value How can I update this value ? Thanks for help
-
Hi all, I'm trying to show a tooltip for a button. I have a StopWatch, the purpose is to show the elapsed Time into the tooltip string. and to get the refreshed value each time the mouse is under the button I'm doing like that this.toolTip1.SetToolTip(button1, Stopwatch.Elapsed.ToString()); but the tooltip shown have always the same value How can I update this value ? Thanks for help
I think you may have to hide the tool tip and reshow it again. That, or use a custom tooltip that lets you set the text while it's visible.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: What this world needs... (Video) The apostle Paul, modernly speaking: Epistles of Paul Judah Himango