Hi all
I'm finishing up a small personnel project and I'm having some trouble with the "showintaskbar= false" property of the form
as you can see when is the show in task bar to false it does indeed not show up in the task bar but i get a "mdi" ish minimized window right above the task bar.
to get around this i tried making a sub called "open_close"
c# Code:
private void open_close() { if (WindowState != FormWindowState.Normal) { Show(); WindowState = FormWindowState.Normal; } else { Hide(); WindowState = FormWindowState.Minimized; } }
The open_close is triggered by either a double click on the notifyicon1 or a form1 resize
The problem i am running into two problems as side effects
1) since there is no way i know of to capture the specific form minimize event i can only use form resize so if i resize the form manually (using the mouse) i still get the same event triggering as if i hit minimize
2) the form still blinks down at the bottom before it hides so its a little distracting.
so my questions is:
Is there a better way to intercept the minimize button on the for???





Reply With Quote