Showing Minimized form

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 :D?

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top