Stopping on an item

2 posts, 0 answers
  1. Derek
    Derek avatar
    104 posts
    Member since:
    Aug 2008

    Posted 16 Jan 2009 Link to this post

    Hi,
    My RadRotator control cycles every 4 seconds but I want to be able to stop it when the mouse is over the control. Is this possible, the control is populated dynamically with user controls.

    Thanks,
    Derek.
  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 19 Jan 2009 Link to this post

    Hi Derek,

    Thanks for writing.

    Indeed you can. You have to just handle the MouseEnter and MouseLeave events and call the radRotator1.Stop() and radRotator1.Start() methods respectively. Here is the code:

    private void radRotator1_MouseEnter(object sender, EventArgs e)  
    {  
         radRotator1.Stop();  
    }  
     
    private void radRotator1_MouseLeave(object sender, EventArgs e)  
    {  
         radRotator1.Start();  

    Please write back if you have other questions.

    Greetings,
    Victor
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top