When I click the Minimize button in my Windows Forms application, I don’t want it to perform the classic Windows minimization animation (the window goes to the taskbar).
As far as I know, there is no Minimize event, I can just use Resize, but I don’t know how to determine if the button clicked to minimize the button. I tried to use if ( WindowState = FormWindowState.Minimized ) { ... }, but it is still animation and runs the code after.
Is there a way to detect a click on the minimize button? Is there a way to turn off the animation or is it called up by windows settings?
source
share