开发者

In Windows Forms, is there a control that shows a text overlay like a tooltip without all the tooltip behavior?

I just want some kind of simple text overlay that shows for a few seconds when I tell it to, at a certain location, just like the normal tooltip.

However, I don't want the normal tooltip behavior of automatically showing when the mouse hovers over the control it's associated with. Can I disable this behavior on the normal tooltip, or is there some othe开发者_C百科r control I can use?


You can just call the tooltip yourself:

private void button1_Click(object sender, EventArgs e)
{
  ToolTip tip = new ToolTip();
  tip.ToolTipTitle = "Title";
  tip.Show("Hello", button1, 10, button1.Height - 6, 5000);
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜