Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Resize If (FormWindowState.Minimized = WindowState) Then ShowInTaskbar = False End If End SubBut, doing this is closing my form for good as if I would have close it manually. I don't know what triggers the close event to be fired. Anyone would have any idea?