I have a WinForms application that displays an animated gif in the easiest way - there is a PictureBox that directly loads .gif.
The code generated by the WinForms constructor is as follows:
// // pictureBoxHomer // this.pictureBoxHomer.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; this.pictureBoxHomer.Dock = System.Windows.Forms.DockStyle.Fill; this.pictureBoxHomer.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxHomer.Image"))); this.pictureBoxHomer.Location = new System.Drawing.Point(3, 3); this.pictureBoxHomer.Name = "pictureBoxHomer"; this.pictureBoxHomer.Size = new System.Drawing.Size(905, 321); this.pictureBoxHomer.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.pictureBoxHomer.TabIndex = 0; this.pictureBoxHomer.TabStop = false;
The image, of course, looks like this: http://media.tumblr.com/tumblr_m1di1xvwTe1qz97bf.gif
Problem: although this animated gif appears unexpectedly in the browser, it works too fast in the WinForms application, which is not as good as it needs to be. So:
Question: is there a way to slow down an animated gif in a WinForms application?
source share