We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to load a "GIF" image in SplashControl or SplashPanel ?

Thread ID:

Created:

Updated:

Platform:

Replies:

41683 Mar 9,2006 08:23 AM UTC Mar 15,2006 02:08 PM UTC WinForms 9
loading
Tags: Tools
Andy Liu
Asked On March 9, 2006 08:23 AM UTC

HI, I need to show a "GIF" image to user waiting while a long time system operation . Can I load a "GIF" image in SplashControl or SplashPanel to do that? how to do ? thanks.

Anupama Roy [Syncfusion]
Replied On March 9, 2006 11:30 AM UTC

Hi Andy, Our SplashControl does support the display of GIFs through the use of SplashPanel. You can place a PictureBox within a SplashPanel and display a GIF within it.I have attached a sample that shows how this can be done. Please let me know if you need furthur assistance. Thanks for choosing Syncfusion products. Regards, Anu.

Andy Liu
Replied On March 10, 2006 01:31 AM UTC

thanks,Anupama your source code could not be compiled maybe because the component version incorrect, my Syncfusion component version is 2.0.5.1 would your please give me another sourceCode with my version,so thanks! > >Hi Andy, > >Our SplashControl does support the display of GIFs through the use of SplashPanel. You can place a PictureBox within a SplashPanel and display a GIF within it.I have attached a sample >that shows how this can be done. > >Please let me know if you need furthur assistance. > >Thanks for choosing Syncfusion products. > >Regards, > >Anu.

Anupama Roy [Syncfusion]
Replied On March 10, 2006 02:50 PM UTC

Hi Andy, I am attaching a sample that compiles with your version. Thanks, Anu.

splash_animgif.zip

Andy Liu
Replied On March 11, 2006 10:19 AM UTC

HI,Anu it''s working.thanks. But I still have a further question: I set the SplashPanel and "GIF" pictureBox in a individual form and provide a public ShowSplash() method for calling. I called the ShowSplash() method in another form before the long time operation method in order to show a "GIF" image for user waiting. unfortunately,the SplashPanel and "GIF" image just only displayed AFTER the long time operation method is completed :( do you have a better solution for this case? >Hi Andy, > >I am attaching a sample that compiles with your version. > >Thanks, > >Anu. >

splash_animgif.zip

Anupama Roy [Syncfusion]
Replied On March 13, 2006 04:41 AM UTC

Hi Andy, Do you use a timer for your long time operation?If so,try to set your splash display conditions in the timer_Tick event.If this information is not enough,please send me more details on how you perform your long time operation. Thanks for your interest in Syncfusion products. Regards, Anu.

Andy Liu
Replied On March 13, 2006 07:17 AM UTC

NO,I dont use the timer.My sample code below, I defined two methods using SplashControl and SplashPanel respectively : //-------------------------------------------- public class frmSplash:System.Windows.Forms.Form { private Syncfusion.Windows.Forms.Tools.SplashControl spc; private Syncfusion.Windows.Forms.Tools.SplashPanel spl; private System.Windows.Forms.PictureBox pb; //component initialize...... public void ShowSplash(string sFile) { this.spc.SplashImage=Image.FromFile(sFile); this.spc.ShowSplash(false); } public void ShowSplash1(string sFile) { this.pb.Image=Image.FromFile(sFile); this.pb.SizeMode=PictureBoxSizeMode.AutoSize; this.spl.ShowSplash(); } } //----------------------------------------------- this is the code below to call test these two methods: //this method works well,the gif image displayed before long_time_operation and disappear after the long_time_operation ,but the displayed gif image is static frmSplash fs=new frmSplash(); fs.ShowSplash("xxx.gif"); long_time_operation(); //this method has the problem I have mentioned: the displayed gif image is dynamic ,but it''s only displayed AFTER the long_time_operation method is completed frmSplash fs=new frmSplash(); fs.ShowSplash1("xxx.gif"); long_time_operation();

Anupama Roy [Syncfusion]
Replied On March 14, 2006 12:30 PM UTC

Hi Andy, I have not reproduced the exact issue yet.I am looking into this and will get back to you soon. Regards, Anu.

Andy Liu
Replied On March 15, 2006 06:21 AM UTC

OK,thanks

Anupama Roy [Syncfusion]
Replied On March 15, 2006 02:08 PM UTC

Hi Andy, I have created a sample with the code snippet given above.In my sample ,I am loading another application under a button click and the animated gif displays correctly before the second application is loaded. Could you please run this at your end and let me know whether is a big difference between this and your''s ? SplashSample It would be appreciable if you can modify this and send it back to us for furthur investigation. Thanks, Anu.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;