Hi there,
I am very new to VB.net but not programming per se. However, something has me stumped and I have been as yet unable to find a solution.
I created a very simple form that when loaded should not be visible but have a little systray icon only. The systray icon part works, however the form is not being hidden. This is the code (all of it) that *should* work:
So why is this not working? Am I missing something here? I took the Me.Visble = False trick from a piece of code I found on the web (link)Code:Public Class Form1 Private Sub NotifyIcon1_MouseDoubleClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles NotifyIcon1.MouseDoubleClick MsgBox("You clicked on the notification icon") Me.Visible = True End Sub Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Me.Visible = False NotifyIcon1.Visible = True End Sub End Class
If someone could point me in the right direction that would be great!
Thanks in advance.
Mighor




Reply With Quote