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

using button element in radCarousel to open up WinForms

2 Answers 104 Views
Carousel
This is a migrated thread and some comments may be shown as answers.
Jack
Top achievements
Rank 1
Jack asked on 17 Apr 2009, 05:39 AM
Hi all,
I have 5 button elements in the radCarousel, each button is to open up different winforms.
is it possible that, when selecting which button to open which type of forms, let the carousel's animation finish 1st, before my form starts popping out??

rgds,
Jack

2 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 17 Apr 2009, 11:12 AM
Hi Jack,

Thank you for writing.

You, should use RadCarousel.CarouselElement.AnimationFinished event to achieve the desired behavior.

For example:

//subscribe AnimationFinished event 
   this.radCarousel1.CarouselElement.AnimationFinished += new EventHandler(CarouselElement_AnimationFinished);  
 
private bool buttonPressed = false
private void radButtonElement5_Click(object sender, EventArgs e) 
       this.buttonPressed = true
 
void CarouselElement_AnimationFinished(object sender, EventArgs e) 
     if (buttonPressed == true
     { 
        MyForm.Show(); 
     } 
     this.buttonPressed = false

Hope this helps.

Regards,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Jack
Top achievements
Rank 1
answered on 20 Apr 2009, 01:05 AM
Hi Peter,
Thanks for the support.
It did helps..

Regards,
Jack
Tags
Carousel
Asked by
Jack
Top achievements
Rank 1
Answers by
Peter
Telerik team
Jack
Top achievements
Rank 1
Share this question
or