K
Kimera.Kimera
I want to show the form when the option to show is clicked on a systray
icon, but nothing is shown. The only way i can make this shown is to
add Me.Show, however this gives a entirely shrunk window, that now wont
hide again (even with adding Me.Hide)
Could anyone give me the reason for this and help me solve this one ?
On Load this form is set to :
ShowInTaskbar = False
Me.WindowState = FormWindowState.Minimized
and the systray is also loaded to add controls.
Private Sub MnuShowHide_Click(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles MnuShowHide.Click
If Hidden = False Then
ShowInTaskbar = False
Me.WindowState = FormWindowState.Minimized
MnuShowHide.Text = "Show"
Hidden = True
Else
If Hidden = True Then
ShowInTaskbar = True
Me.WindowState = FormWindowState.Normal
MnuShowHide.Text = "Hide"
Hidden = False
End If
End If
End Sub
icon, but nothing is shown. The only way i can make this shown is to
add Me.Show, however this gives a entirely shrunk window, that now wont
hide again (even with adding Me.Hide)
Could anyone give me the reason for this and help me solve this one ?
On Load this form is set to :
ShowInTaskbar = False
Me.WindowState = FormWindowState.Minimized
and the systray is also loaded to add controls.
Private Sub MnuShowHide_Click(ByVal sender As System.Object, ByVal
e As System.EventArgs) Handles MnuShowHide.Click
If Hidden = False Then
ShowInTaskbar = False
Me.WindowState = FormWindowState.Minimized
MnuShowHide.Text = "Show"
Hidden = True
Else
If Hidden = True Then
ShowInTaskbar = True
Me.WindowState = FormWindowState.Normal
MnuShowHide.Text = "Hide"
Hidden = False
End If
End If
End Sub