GrapeCity.Win.Components 名前空間 > GcBalloonTip クラス : GetBalloonTipInformation メソッド |
Public Function GetBalloonTipInformation( _ ByVal control As Control _ ) As BalloonTipInformation
public BalloonTipInformation GetBalloonTipInformation( Control control )
次のサンプルコードは、このメソッドの使用方法を示します。
このサンプルコードは、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