本文整理汇总了VB.NET中System.Windows.Forms.NotifyIcon.ShowBalloonTip方法的典型用法代码示例。如果您正苦于以下问题:VB.NET NotifyIcon.ShowBalloonTip方法的具体用法?VB.NET NotifyIcon.ShowBalloonTip怎么用?VB.NET NotifyIcon.ShowBalloonTip使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.NotifyIcon
的用法示例。
在下文中一共展示了NotifyIcon.ShowBalloonTip方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的VB.NET代码示例。
示例1: SetBalloonTip
Private Sub SetBalloonTip()
notifyIcon1.Icon = SystemIcons.Exclamation
notifyIcon1.BalloonTipTitle = "Balloon Tip Title"
notifyIcon1.BalloonTipText = "Balloon Tip Text."
notifyIcon1.BalloonTipIcon = ToolTipIcon.Error
End Sub
Sub Form1_Click(ByVal sender As Object, ByVal e As EventArgs) _
Handles Me.Click
notifyIcon1.Visible = True
notifyIcon1.ShowBalloonTip(30000)
End Sub
示例2: Form1_DoubleClick
Sub Form1_DoubleClick(ByVal sender As Object, ByVal e As EventArgs) _
Handles Me.DoubleClick
notifyIcon1.Visible = True
notifyIcon1.ShowBalloonTip(20000, "Information", "This is the text", _
ToolTipIcon.Info)
End Sub