Leadtools.WinForms Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
StopAnimation Method
See Also  Example
Leadtools.WinForms Namespace > RasterPictureBox Class : StopAnimation Method



Stops an animation playback.

Syntax

Visual Basic (Declaration) 
Public Sub StopAnimation() 
Visual Basic (Usage)Copy Code
Dim instance As RasterPictureBox
 
instance.StopAnimation()
C# 
public void StopAnimation()
C++/CLI 
public:
void StopAnimation(); 

Example

This example will stop an animated GIF file.

Visual BasicCopy Code
Public Sub RasterPictureBox_StopAnimation(ByVal viewer As RasterPictureBox)
   viewer.StopAnimation()
End Sub
C#Copy Code
public void RasterPictureBox_StopAnimation(RasterPictureBox viewer) 

   viewer.StopAnimation();  // suspend painting of the image  
}

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also