Balloon class in c#.net for winforms
Is there any balloon class in c#.开发者_如何学Cnet using winforms ??
No, but you can use ToolTip
and set the IsBalloon
property to true
:
true
if a balloon window should be used; otherwise,false
if a standard rectangular window should be used. The default isfalse
.
private void Form1_Load(object sender, EventArgs e)
{
ToolTip tp = new ToolTip();
tp.AutoPopDelay = 5000;
tp.InitialDelay = 0;
tp.ReshowDelay = 500;
tp.ShowAlways = true;
//Gets or sets whether the tooltip should use a ballon window
tp.IsBalloon = true;
tp.SetToolTip(this.textBox1, "This is a Text");
tp.SetToolTip(this.button1, "This is a button");
}
精彩评论