Sure :)
I wan't use own buttons (min, max, exit, more), so i set FormBorderStyle to FormBorderStyle.None and writed my code to paint window on my way (with my buttons). Buttons are working fine (min, max), but only this effect is annoying. I need something like that (or this code to run automatic):
- void TaskBarClick()
-
{
-
if(this.WindowState != FormWindowState.Minimized)
-
{
-
prevstate = this.WindowState;
-
this.WindowState = FormWindowState.Minimized;
-
}
-
else this.WindowState = prevstate;
-
}
For example photoshop have own window style and for this it works fine (clicking on taskbar).