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:
  1. private void open_close()
  2.         {
  3.  
  4.             if (WindowState != FormWindowState.Normal)
  5.             {
  6.                 Show();
  7.                 WindowState = FormWindowState.Normal;
  8.             }
  9.             else
  10.             {
  11.                 Hide();
  12.                 WindowState = FormWindowState.Minimized;
  13.             }
  14.         }


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