Articles in this section

How to programmatically rotate items in WinForms Carousel?

You can rotate the items programmatically in WinForms carousel control by setting ActiveItem property. 

 

Code snippet [C#]:

 

private void buttonAdv1_Click(object sender, EventArgs e)

{

  this.carousel1.ActiveItem = this.carousel1.Items[index];

  index++;

  if (index >= this.carousel1.Items.Count)

  {

    index = 0;

  }

}

 

 

Carousel

 

View the sample in GitHub

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied