What basically i want is to show is:
notifyicon.visible = true
I mean to show a tray icon when the windows starts up but the program form should not be shown ,how could i achieve it ?
I got to know that by adding to registry you can run the program on startup example below
Dim regkey As RegistryKey
regkey = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", True)
If (runonstartupToolStripMenuItem.Checked = True) Then
' Add the value in the registry so that the application runs at startup
regkey.SetValue("Your Application Name", Application.ExecutablePath.ToString())
Else
' Remove the value from the registry so that the application doesn't start
regkey.DeleteValue("Your Application Name", False)
End If
but this will run the whole program and will make form show up which i do not want unless user manually starts it.