Hello,
could anybody tell me a solution for the following:
I'd like to create a notifyicon - it's ok - but when the mouse is over the icon i don't wanna display any balloontip but i want to display a form.
How could i do this
thnx;
Hello,
could anybody tell me a solution for the following:
I'd like to create a notifyicon - it's ok - but when the mouse is over the icon i don't wanna display any balloontip but i want to display a form.
How could i do this
thnx;
notifyicon and form
JosepMola
Hassan Ayoub
After testing the MouseMove...it seems you need a flag to show that the form is being displayed or you will get dozens of forms because of the reated mousemove events that fire when putting your mouse over the icon.....the following code tested sat
Public Class Form1 Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Me.NotifyIcon1.Icon = Me.Icon Me.NotifyIcon1.Visible = True Me.NotifyIcon1.BalloonTipText = "TEST" Me.NotifyIcon1.BalloonTipTitle = "Title" Me.NotifyIcon1.Text = "T" End Sub Private Sub NotifyIcon1_BalloonTipShown(ByVal sender As Object, ByVal e As System.EventArgs) Handles NotifyIcon1.BalloonTipShown If Not showingform Then Dim f As SplashScreen f = New SplashScreen showingform = True f.ShowDialog()
End If End Sub Private Sub NotifyIcon1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles NotifyIcon1.MouseMove Me.NotifyIcon1.ShowBalloonTip(1000)
End Sub
End CLass Public Class SplashScreen Private Sub SplashScreen_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing showingform = False End Sub
End Class Module Module1 Public showingform As Boolean = False
End Module
There are other ways of passing the variable or setting up the flag but this works...
bbossi