using button element in radCarousel to open up WinForms

3 posts, 1 answers
  1. Jack
    Jack avatar
    9 posts
    Member since:
    Feb 2009

    Posted 17 Apr 2009 Link to this post

    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. Answer
    Peter
    Admin
    Peter avatar
    1148 posts

    Posted 17 Apr 2009 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Jack
    Jack avatar
    9 posts
    Member since:
    Feb 2009

    Posted 19 Apr 2009 Link to this post

    Hi Peter,
    Thanks for the support.
    It did helps..

    Regards,
    Jack
Back to Top