J
jp2group
I have a Main Form that hides in the Task Bar Tray as an Icon until
one of the Tray Icon's Menu Items is selected. (think of your
antivirus program running there)
The program starts up fine and shows the main form fine, but once I
tell it to hide, it does not want to show back up later.
What could my problem be?
Here is my code:
Public Sub ShowMe(ByVal val As Boolean)
TopMost = False
If (val = True) Then
WindowState = FormWindowState.Normal
Show()
ShowInTaskbar = True
TopMost = True
ElseIf (val = False) Then
WindowState = FormWindowState.Minimized
Hide()
ShowInTaskbar = False
End If
Refresh()
Application.DoEvents()
End Sub
one of the Tray Icon's Menu Items is selected. (think of your
antivirus program running there)
The program starts up fine and shows the main form fine, but once I
tell it to hide, it does not want to show back up later.
What could my problem be?
Here is my code:
Public Sub ShowMe(ByVal val As Boolean)
TopMost = False
If (val = True) Then
WindowState = FormWindowState.Normal
Show()
ShowInTaskbar = True
TopMost = True
ElseIf (val = False) Then
WindowState = FormWindowState.Minimized
Hide()
ShowInTaskbar = False
End If
Refresh()
Application.DoEvents()
End Sub