How to save C# winforms Panel or PictureBox with animated elements to gif file? I also tried to do it like this
pictureBox2.Image.Save(System.IO.Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory), "1.gif"),
System.Drawing.Imaging.ImageFormat.Gif);
but it save just static image without animation.