Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Rotator > Rotator problem

Answered Rotator problem

Feed from this thread
  • Vitali Kirakossiants avatar

    Posted on Mar 6, 2011 (permalink)

    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?

    Reply

  • Answer Ivan Petrov Ivan Petrov admin's avatar

    Posted on Mar 9, 2011 (permalink)

    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!

    Reply

  • Vitali Kirakossiants avatar

    Posted on Mar 9, 2011 (permalink)

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

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Rotator > Rotator problem