This function seems so hard to do. Some one sugested using a coponent as startup but this is no good.
Basically i only want my app to load in tray if it loads on windows startup.
This is caleld on load
it works any other time, the resize event. just not onload.
Basically i only want my app to load in tray if it loads on windows startup.
This is caleld on load
VB.NET:
If My.Settings.AutoRun = True Then
chkStartup.Checked = True
_SendTray = True
Me.WindowState = FormWindowState.Minimized
End If
VB.NET:
Private Sub ClientForm_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize
If Me.WindowState = FormWindowState.Minimized Then
Me.Hide()
End If
End Sub
it works any other time, the resize event. just not onload.