AnimationForm ?

7 posts, 0 answers
  1. Emrah Yigit
    Emrah Yigit avatar
    11 posts
    Member since:
    Mar 2007

    Posted 28 Apr 2007 Link to this post

    Hello,

    I want my Splash Screen appears like it's opacity value should be increased from 0 to 100. is there any way to do it with AnimationEngine Class or with AnimationForm ? Or you know another way do it ?

    Thanks
  2. Mike
    Admin
    Mike avatar
    640 posts

    Posted 02 May 2007 Link to this post

    Hi Emrah Yigit,

    Animations related APIs of Telerik Presentation Framework are currently available for use only with RadObjects and  their corresponding RadProperties. Nevertheless, we implemented a functionality, similar to the one you need, available in our last release (Q1). Telerik..WinControls assembly, contains the class: SpashForm, from the namespace: VisualStyleBuilder.Design, that you can use to achieve the semi-transparent animated splash-screen. Here is a example for its usage, from our QuickStart application (Telerik Examples):
    using VisualStyleBuilder.Design; 
     
    public partial class MainForm : ShapedForm 
        private SplashForm splashForm; 
         
        public MainForm() 
        { 
    #if !DEBUG 
            splashForm = new SplashForm(); 
            splashForm.BackgroundImage = Resources.splash; 
            splashForm.Show();  
    #endif 
     
            InitializeComponent(); 
            //... perform other initialization routines 
        } 
         
        private void MainForm_Load(object sender, EventArgs e) 
        { 
            //perform loading tasks ... 
            
    #if !DEBUG 
            this.splashForm.Hide(); 
            this.splashForm.Dispose(); 
            this.splashForm = null
    #endif 
        } 

    I also attached the source-code of SplashForm if you need to tune anything up.
    Let us know if this works for you, or if you have any suggestion about how we can improve this feature.

    Greetings,
    Mike
    the telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Emrah Yigit
    Emrah Yigit avatar
    11 posts
    Member since:
    Mar 2007

    Posted 02 May 2007 Link to this post

    only a word.... perfect
  5. bagher davoudi
    bagher davoudi avatar
    1 posts
    Member since:
    Apr 2007

    Posted 19 Aug 2009 Link to this post

    Kindly send Vb.net code for the same
  6. Nick
    Admin
    Nick avatar
    767 posts

    Posted 19 Aug 2009 Link to this post

    Hello bagher davoudi,

    You can use our C#, VB.NET converter here.

    Sincerely yours,
    Nick
    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.
  7. Thomas Schuster
    Thomas Schuster avatar
    11 posts
    Member since:
    Jul 2009

    Posted 09 Mar 2010 Link to this post

    Hi guys.

    Just tried out your suggested solution and so far it works all fine.

    But in my case, i'm trying to add an animated GIF in the Background.
    Unfortunately my gif isnt moving :(

    Created it with Photoshop and all kind of imageviewers will animate it right.

    Is there any hint you can give to me?

    Heres my code:
    SplashForm f = new SplashForm(); 
                f.BackgroundImage = Image.FromFile(@"C:\wait.gif"); 
                f.Show(); 
                doBinding("ALL"); 
                f.Hide(); 
                f.Dispose(); 

  8. Nick
    Admin
    Nick avatar
    767 posts

    Posted 09 Mar 2010 Link to this post

    Hello Thomas Schuster,

    Unfortunately, we do no support animated gif files as in web browsers. But as a customer you have access to our source code and you can modify the SplashForm class in the way you want e.g. instead of just changing the opacity of the form, you can change the image as well. As you can see from the source code, the implementation uses layered windows. You can download the source code from your account.

    Do not hesitate to write me back if you have further questions.

    Best wishes,
    Nick
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top
UI for WinForms is Visual Studio 2017 Ready