I'm trying to create a system tray application, but I don't know how to get it to stay there. It just exits after Sub Main(). I've tried using threads to keep the application alive, but it doesn't work.
Any ideas?
' This method will Hide the form
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
Hide()
End Sub
' On Double clicking Form is shown again.
Private Sub NotifyIcon1_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles NotifyIcon1.DoubleClick
Show()
End Sub