🟣 C# / .NET 6+
Disable Window Animations (C#)
Disables minimize/maximize window animations for a snappier feel. Applies the tweak via Microsoft.Win32.Registry.
SetDisableAnimations.cs
// 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.");