c# - Is it possible to disable animation when minimizing / restoring window? -


When I click the small button in my Windows form, then I'm going to get it down in the classic Windows Minimal animation (window taskbar)

As far as I know, there is no small event, I can just use resizing, but I do not have any clue about how I click on the least button . I tried to use if (WindowState = FormWindowState.Minimized) {...} , but it does anyway animation and then triggers the code.

Is there a way to find out at least click the button? Is there a way to disable animation or is it triggered by Windows Settings?

This works, but this is an unpleasant side effect on the taskbar button. I can not think in any other way, the animation system is not even accessible from Parameters Infos ().

  Public Partial Sections Form 1: Form {Public Form 1 () {Initial component (); } Secure Override Zero WndProc (Riff Message Me) {// Cache WM_SYSCOMMAND, SC_MINIMIZE if (m.msg == 0x112 & amp; mpa.pm.o.o.32 =) = 0xf020) {this.Hide (); This.WindowState = FormWindowState.Minimized; This.BeginInvoke (new action ((=) = this.Show ())); Return; } Base.WandProc (Ref M); }}  

Update: DWMSetWindowAttribute () with the DWMWA_TRANSITIONS_FORCEDISABLED attribute is possible by deactivating the animation on the arrow. See.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -