PowerTools PlusPak for Windows Forms 8.0J
AutoPopDelay プロパティ
使用例 

バルーンチップの表示時間(ミリ秒単位)を取得または設定します。
構文
Public Property AutoPopDelay As Integer
public int AutoPopDelay {get; set;}

プロパティ値

バルーンチップの表示時間(ミリ秒単位)を示す整数。
解説
デフォルト値は 5000 で、バルーンチップウィンドウが 5 秒後に自動的に非表示になることを意味します。値 0 を指定すると、自動的に非表示にはなりません。
使用例

次のサンプルコードは、このプロパティの使用方法を示します。

このサンプルコードは、GcBalloonTip クラスに示されている詳細なコード例の一部を抜粋したものです。

private void button6_Click(object sender, EventArgs e)
{
    if (gcBalloonTip1.GetBalloonTipInformation(button6)==null)
    {
        BalloonTipInformation tipInfo = new BalloonTipInformation();
        tipInfo.Text = "Show the tip of button!";
        tipInfo.Caption = "GcBalloonTip Samples";
        tipInfo.AutoShow = true;
        tipInfo.AutoPopDelay = 10000;
        tipInfo.LongTapDelay = 10000;
        gcBalloonTip1.SetBalloonTipInformation(button6, tipInfo);
    }
    else
    {
        gcBalloonTip1.SetBalloonTipInformation(button6,(BalloonTipInformation)null);
    }
}
Private Sub button6_Click(sender As Object, e As EventArgs)
    If gcBalloonTip1.GetBalloonTipInformation(button6) Is Nothing Then
        Dim tipInfo As New BalloonTipInformation()
        tipInfo.Text = "Show the tip of button!"
        tipInfo.Caption = "GcBalloonTip Samples"
        tipInfo.AutoShow = True
        tipInfo.AutoPopDelay = 10000
        tipInfo.LongTapDelay = 10000
        gcBalloonTip1.SetBalloonTipInformation(button6, tipInfo)
    Else
        gcBalloonTip1.SetBalloonTipInformation(button6, DirectCast(Nothing, BalloonTipInformation))
    End If
End Sub
プラットフォーム

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

参照

BalloonTipInformation クラス
BalloonTipInformation メンバ

Send Feedback