THanks. I had to put
If Me.WindowState = FormWindowState.Minimized Then
Me.Hide()
End If
in the activated event, not resize. when it was in resize is was not
firing. when does the resize event get fired?
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2f************@uni-berlin.de...
* " - Dan -" <da*@domain.com> scripsit: I have an assembly that opens minimised and uses a notify icon in the
system tray. IN the new() I have
Me.ShowInTaskbar = False
and when the form loads I use
Me.WindowState = FormWindowState.Minimized
but the form opens sort-of minimised but it minimises to a small bar
above the start button. I dont want to see the small bar, i want it minimised
and not visible except forthe notify icon in the system tray.
In the form's 'Resize' event check its 'WindowState', if it's
'Minimized', hide the form.
--
Herfried K. Wagner [MVP]
URL:http://dotnet.mvps.org/