1) override the method SetVisibleCore of your main form:
Private mShow As Boolean = False2) then if the form needs to be shown you call this method:
Protected Overrides Sub SetVisibleCore(ByVal value As Boolean)
'--- Prevent form from being shown at startup
If Not mShow Then value = False
MyBase.SetVisibleCore(value)
End Sub
Private Sub ShowMe()This method can for example be called in the click-event of a NotifyIcon
mShow=true
me.visible = true
End Sub



