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

AnimationForm ?

6 Answers 271 Views
Form
This is a migrated thread and some comments may be shown as answers.
Emrah Yigit
Top achievements
Rank 1
Emrah Yigit asked on 28 Apr 2007, 12:35 PM
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

6 Answers, 1 is accepted

Sort by
0
Mike
Telerik team
answered on 02 May 2007, 11:55 AM
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
0
Emrah Yigit
Top achievements
Rank 1
answered on 02 May 2007, 09:03 PM
only a word.... perfect
0
bagher davoudi
Top achievements
Rank 1
answered on 19 Aug 2009, 08:34 AM
Kindly send Vb.net code for the same
0
Nick
Telerik team
answered on 19 Aug 2009, 12:25 PM
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.
0
Thomas Schuster
Top achievements
Rank 1
answered on 09 Mar 2010, 10:44 AM
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(); 

0
Nick
Telerik team
answered on 09 Mar 2010, 02:19 PM
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.
Tags
Form
Asked by
Emrah Yigit
Top achievements
Rank 1
Answers by
Mike
Telerik team
Emrah Yigit
Top achievements
Rank 1
bagher davoudi
Top achievements
Rank 1
Nick
Telerik team
Thomas Schuster
Top achievements
Rank 1
Share this question
or