'Declaration
Public Sub GifPlay()
public void GifPlay()
public procedure GifPlay();
public function GifPlay();
public: void GifPlay();
public: void GifPlay();
'Declaration
Public Sub GifPlay()
public void GifPlay()
public procedure GifPlay();
public function GifPlay();
public: void GifPlay();
public: void GifPlay();
Please note that the AnimateGIF property is set to true using this method.
'We assume that the GdViewer1 control has been properly integrated 'and your GIF file has been properly displayed as well. Sub ButtonPlay_Click(sender As Object, e As EventArgs) Handles ButtonPlay.Click If GdViewer1.GetLastPath().EndsWith(".gif") Then GdViewer1.GifPlay() End If End Sub Sub ButtonStop_Click(sender As Object, e As EventArgs) Handles ButtonStop.Click GdViewer1.GifStop() End Sub
//We assume that the GdViewer1 control has been properly integrated //and your GIF file has been properly displayed as well. void buttonPlay_Click(object sender, EventArgs e) { if (GdViewer1.GetLastPath().EndsWith(".gif")) GdViewer1.GifPlay(); } void buttonStop_Click(object sender, EventArgs e) { GdViewer1.GifStop(); }