Rotator problem

3 posts, 1 answers
  1. Robert
    Robert avatar
    53 posts
    Member since:
    Feb 2010

    Posted 06 Mar 2011 Link to this post

    1) If I press many times "Next" or "Forward" during rotation process, the rotator functionality crashes.
        I can see StartRotation and StopRotation. Please, provide me with guidelines of how to use the two events.

    2) If I need to add a PictureBox, then what?
  2. Answer
    Ivan Petrov
    Admin
    Ivan Petrov avatar
    701 posts

    Posted 09 Mar 2011 Link to this post

    Hi Vitali,

     
    Thank you for writing.

    In regards to your first question, you can use the following code snippet to change the images avoiding the described issue:

    public Form1()
    {
       InitializeComponent();
     
       this.radRotator1.EndRotate += new EventHandler(radRotator1_EndRotate);
    }
     
    void radRotator1_EndRotate(object sender, EventArgs e)
    {
       this.radButton1.Enabled = true;
    }
     
    private void radButton1_Click(object sender, EventArgs e)
    {
       if (!this.radRotator1.Running)
       {
          this.radButton1.Enabled = false;
          this.radRotator1.Next();
       }
    }

    As to your seond question, you can add a RadImageItem to the RadRotator Items collection, so you do not need to add picture boxes.

    I hope this will help. If you have further questions, I would be glad to help.

     

    Regards,
    Ivan Petrov
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Robert
    Robert avatar
    53 posts
    Member since:
    Feb 2010

    Posted 09 Mar 2011 Link to this post

    спасибо, Иван :)
Back to Top