R
Ok,
hab eine Lösung.
Falls jemand auch mal das Problem hat, man kann es mit einem Trick umgehen.
statt
this.ShowInTaskbar = false;
nimmt man
TaskBarVisible((int)this.Handle, false);
mit den Funktionen
[DllImport("User32.dll")]
private static extern void SetWindowPos (int hWnd,
int hWndInsertAfter,
int x,
int y,
int cx,
int cy,
int wFlags);
private void TaskBarVisible(int FormHandle, bool Visible)
{
if (Visible == true)
SetWindowPos (FormHandle, 0, 0, 0, 0, 0, 64);
else
SetWindowPos (FormHandle, 0, 0, 0, 0, 0, 128);
}
Wichtig ist noch drauf zu achten, dass man
this.WindowState = FormWindowState.Minimized;
beim Minimieren nicht verwendet.
MFG