SetLayeredWindowAttributes

[DllImport("user32.dll", SetLastError = true)]
public static extern bool SetLayeredWindowAttributes(
   IntPtr hwnd,
   uint crKey,
   byte bAlpha,
   uint dwFlags
);

Microsoft documentation: Link

Last updated