开发者

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 is false.


    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");
    }
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜