This is a migrated thread and some comments may be shown as answers.

Rotator problem

2 Answers 66 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Роберт
Top achievements
Rank 1
Роберт asked on 06 Mar 2011, 11:32 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Ivan Petrov
Telerik team
answered on 09 Mar 2011, 05:03 PM
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!
0
Роберт
Top achievements
Rank 1
answered on 09 Mar 2011, 05:24 PM
спасибо, Иван :)
Tags
Rotator
Asked by
Роберт
Top achievements
Rank 1
Answers by
Ivan Petrov
Telerik team
Роберт
Top achievements
Rank 1
Share this question
or