// SetDisableAnimations.cs // // Disable Window Animations. // Disables minimize/maximize window animations for a snappier feel. // // Usage: dotnet new console -o SetDisableAnimations, replace Program.cs with this // file, then dotnet run. using System; using Microsoft.Win32; using RegistryKey key = Registry.CurrentUser.CreateSubKey(@"Control Panel\Desktop\WindowMetrics"); key.SetValue("MinAnimate", "0", RegistryValueKind.String); Console.WriteLine("Disable Window Animations applied.");