Occurs when the frame changes during animation playback.
public event EventHandler<RasterPictureBoxFrameChangedEventArgs> FrameChangedPublic Event FrameChanged As EventHandler(Of RasterPictureBoxFrameChangedEventArgs)public:event EventHandler<RasterPictureBoxFrameChangedEventArgs^>^ FrameChanged
The event handler receives an argument of type RasterPictureBoxFrameChangedEventArgs containing data related to this event. The following RasterPictureBoxFrameChangedEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| Index | An integer which represents the index of the currently displayed frame. |
This event is raised if the AnimationMode property is changed by either a programmatic modification or user interaction.
This example uses the AnimationModeChanged event to show how the AnimationMode has changed.
Imports Leadtools.WinFormsImports LeadtoolsImports Leadtools.CodecsImports Leadtools.DrawingPrivate Sub viewer_AnimationModeChanged(ByVal sender As Object, ByVal e As EventArgs)Dim viewer As RasterPictureBox = CType(IIf(TypeOf sender Is RasterPictureBox, sender, Nothing), RasterPictureBox)Dim s As String = String.Format("AnimationModeChanged Event: {0}", viewer.AnimationMode.ToString())MessageBox.Show(s)End SubPublic Sub RasterPictureBox_AnimationModeChanged(ByVal viewer As RasterPictureBox)AddHandler viewer.AnimationModeChanged, AddressOf viewer_AnimationModeChangedSelect Case viewer.AnimationModeCase RasterPictureBoxAnimationMode.Infiniteviewer.AnimationMode = RasterPictureBoxAnimationMode.UseImageGlobalLoopCase RasterPictureBoxAnimationMode.UseImageGlobalLoopviewer.AnimationMode = RasterPictureBoxAnimationMode.InfiniteEnd Selectviewer.PlayAnimation()RemoveHandler viewer.AnimationModeChanged, AddressOf viewer_AnimationModeChangedEnd Sub
using Leadtools.WinForms;using Leadtools;using Leadtools.Codecs;using Leadtools.Drawing;private void viewer_AnimationModeChanged(object sender, EventArgs e){RasterPictureBox viewer = sender as RasterPictureBox;string s = string.Format("AnimationModeChanged Event: {0}", viewer.AnimationMode.ToString());MessageBox.Show(s);}public void RasterPictureBox_AnimationModeChanged(RasterPictureBox viewer){viewer.AnimationModeChanged += new EventHandler(viewer_AnimationModeChanged);switch (viewer.AnimationMode){case RasterPictureBoxAnimationMode.Infinite:viewer.AnimationMode = RasterPictureBoxAnimationMode.UseImageGlobalLoop;break;case RasterPictureBoxAnimationMode.UseImageGlobalLoop:viewer.AnimationMode = RasterPictureBoxAnimationMode.Infinite;break;}viewer.PlayAnimation();viewer.AnimationModeChanged-= new EventHandler(viewer_AnimationModeChanged);}
|
Products |
Support |
Feedback: FrameChanged Event - Leadtools.WinForms |
Introduction |
Help Version 19.0.2017.3.22
|

Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.