开发者

Implementing a tooltip on a trackbar in c#

I am trying to implement a trackbar with a tooltip. What I want is that the tooltip to appear at certain values when the trackbar is scrolling and then disappear ( and appear at the x,y coordinate of that value). I have been able to get the tooltip up and running but unfortunately it appears all the time when the mouse hovers over the trackbar.

Using .NET framework 2.0

Any help/suggestions开发者_StackOverflow社区 greatly appreciated.

Thanks


You need this overload of Tooltip.Show


I think you should use a balloon tooltip

ToolTip btt= new ToolTip(); 

btt.ToolTipTitle = "Tooltip"; 
btt.UseFading = true; 
btt.UseAnimation = true; 
btt.IsBalloon = true; 
btt.ShowAlways = true; 
btt.AutoPopDelay = 5000; 
btt.InitialDelay = 1000; 
btt.ReshowDelay = 500; 


btt.SetToolTip(button3, "Clicked."); 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜