Windows Develop Bookmark and Share   
 index > Windows Forms General > BalloonTip function not working...
 

BalloonTip function not working...

I can hear the sound when I click Button1_Click, and I can see the "Done" msg box, but I never see the balloon on the screen.I've made sure I set NotifyIcon1 to visible. Does anyone know why this function won't show the balloon?

Here is what I have in my windows form. VS.NET 2005, .NET FWK 2.0, WIN XP PRO SP2.

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button1.Click

Me.NotifyIcon1.Visible = True

Me.NotifyIcon1.ShowBalloonTip(1000, "test", "test boollon", ToolTipIcon.Info)

MsgBox("done")

End Sub

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

End Sub

End Class

fufufufufufu  Tuesday, November 13, 2007 9:21 PM

This is because to show the BallonTip, needs a Icon that is showed in the taskbar notification.

Try this for example:

Code Block

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button1.Click

Me.NotifyIcon1.Icon = Me.Icon

Me.NotifyIcon1.Visible = True

Me.NotifyIcon1.ShowBalloonTip(1000, "test", "test boollon", ToolTipIcon.Info)

MsgBox("done")

End Sub

End Class

Regards
Ronald Ricardo Ramirez Moran  Tuesday, November 13, 2007 10:22 PM

This is because to show the BallonTip, needs a Icon that is showed in the taskbar notification.

Try this for example:

Code Block

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button1.Click

Me.NotifyIcon1.Icon = Me.Icon

Me.NotifyIcon1.Visible = True

Me.NotifyIcon1.ShowBalloonTip(1000, "test", "test boollon", ToolTipIcon.Info)

MsgBox("done")

End Sub

End Class

Regards
Ronald Ricardo Ramirez Moran  Tuesday, November 13, 2007 10:22 PM

You can use google to search for other answers

Custom Search

More Threads

• Vertical Line like in Installshield wizard
• "Graphics.FromImage(myBitmap)" in worker thread?
• Launching Word to edit DOT Template file from VB.Net app
• Custom (Transparent/Shape) Control
• Where are the toolbar icons in Outlook stored?
• How to play a .mp3 or .wav file
• Error Message on Phone Dialer Startup
• Web Control in Windows Form
• LockScreen, get and change Keys.
• Form.Show() shows form minimized!