M
Mitchell Vincent
I have a tiny little application that runs, and when minimized it throws
itself into the systray until the user double clicks on the systray
icon. To accomplish that first part I have this :
Private Sub frmMain_Resize(ByVal sender As Object, ByVal e As _
System.EventArgs) Handles MyBase.Resize
If Me.WindowState = FormWindowState.Minimized Then
Me.Visible = False
Me.ShowInTaskbar = False
End If
End Sub
... I hope that is correct, it does seem to work.
To show the window again on double click of the icon I have :
Private Sub NotifyIcon1_DoubleClick(ByVal sender As Object, ByVal e
As System.EventArgs) Handles NotifyIcon1.DoubleClick
Me.Visible = True
Me.ShowInTaskbar = True
Me.Activate()
If Me.WindowState = FormWindowState.Minimized Then
Me.WindowState = FormWindowState.Normal
End If
End Sub
However, the panel and the 2 web browser controls on the panel are
hidden and never show up again..
What am I doing (or not doing!)?
itself into the systray until the user double clicks on the systray
icon. To accomplish that first part I have this :
Private Sub frmMain_Resize(ByVal sender As Object, ByVal e As _
System.EventArgs) Handles MyBase.Resize
If Me.WindowState = FormWindowState.Minimized Then
Me.Visible = False
Me.ShowInTaskbar = False
End If
End Sub
... I hope that is correct, it does seem to work.
To show the window again on double click of the icon I have :
Private Sub NotifyIcon1_DoubleClick(ByVal sender As Object, ByVal e
As System.EventArgs) Handles NotifyIcon1.DoubleClick
Me.Visible = True
Me.ShowInTaskbar = True
Me.Activate()
If Me.WindowState = FormWindowState.Minimized Then
Me.WindowState = FormWindowState.Normal
End If
End Sub
However, the panel and the 2 web browser controls on the panel are
hidden and never show up again..
What am I doing (or not doing!)?