I have a winforms application that is hidden using the following code
upon prompt:
//Remove from the taskbar and also from alt+tab
this.Visible = false;
this.ShowInTaskbar = false;
this.WindowState = System.Windows.Forms.FormWindowState.Minimized;
Upon correct DDE prompt from another application my application should
show itself in normal state with an icon in the taskbar.
this.Show();
this.Visible = true;
this.WindowState = FormWindowState.Normal;
this.Focus();
//this.ShowInTaskbar = true;
LoadFormData();
Problem: If I do not comment out this.ShowInTaskbar = true when
re-opening my form just hangs. I cannot even access maximize or
minimize buttons. If I comment out this.ShowInTaskbar everything seems
to work correctly EXCEPT there is nothing in the taskbar. I have tried
changing the order of the calls for a show but nothing seems to help.
Any suggestions on what might be occurring and how to resolve it would
be accepted with relish!
Mike