'Declaration
Public Sub GifStop()
public void GifStop()
public procedure GifStop();
public function GifStop();
public: void GifStop();
public: void GifStop();
'Declaration
Public Sub GifStop()
public void GifStop()
public procedure GifStop();
public function GifStop();
public: void GifStop();
public: void GifStop();
Please note that the AnimateGIF property is set to false 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(); }