Bazen kullanılan notify icon kaybolmuyor.Buna birden çok çözüm bulabilirsiniz.Benim vereceğim kod bunlardan sadece bir tanesidir ve kesin çözümüdür.Kod:
Private Sub Form1_FormClosed(sender As Object, e As FormClosedEventArgs) Handles MyBase.FormClosed
NotifyIcon1.Visible = False
NotifyIcon1.Dispose()
Application.Exit()
End Sub
Private Sub Form1_FormClosing(sender As Object, e As FormClosingEventArgs) Handles MyBase.FormClosing
NotifyIcon1.Visible = False
NotifyIcon1.Dispose()
Application.Exit()
End Sub
Burada Form1 yerine formunuzun adını yazın.Kodları Formunuza ekleyin.İyi kullanımlar
Private Sub Form1_FormClosed(sender As Object, e As FormClosedEventArgs) Handles MyBase.FormClosed
NotifyIcon1.Visible = False
NotifyIcon1.Dispose()
Application.Exit()
End Sub
Private Sub Form1_FormClosing(sender As Object, e As FormClosingEventArgs) Handles MyBase.FormClosing
NotifyIcon1.Visible = False
NotifyIcon1.Dispose()
Application.Exit()
End Sub
Burada Form1 yerine formunuzun adını yazın.Kodları Formunuza ekleyin.İyi kullanımlar