473,398 Members | 2,380 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

problem in showing progress while downloading

Hi all

I tried to display an gif image while my file is downloading from server..But as downloading started, animation in gif is stopped...I tried to use thread also but then too its not working..

Please help me to solve this.
Jul 2 '08 #1
3 1097
alag20
84
I had similar issue some time ago. I made a new window with picture box and a timer which was triggered every 1/4 sec. This would refresh the form with a new image [so i was animating it]. I started this form in a new thread - worked like a charm!
Jul 2 '08 #2
Plater
7,872 Expert 4TB
Shouldn't the client browser have it's own download progress thinger?
Jul 2 '08 #3
I had similar issue some time ago. I made a new window with picture box and a timer which was triggered every 1/4 sec. This would refresh the form with a new image [so i was animating it]. I started this form in a new thread - worked like a charm!


hi alag20

Thanks for reply.. I tried your way also.. but now problem is its showing new form but not animation I am sending you code..please let me know If I am doing any mistake..

Expand|Select|Wrap|Line Numbers
  1. // initialization
  2.  
  3.   flag=true;
  4.   Thread thrd = new Thread(new ThreadStart(animation));
  5.   thrd.Start();
  6.   //coding for download 
  7.   flag=false;
  8.  
  9. //animation method
  10. public void animation
  11. {
  12.           while (flag)
  13.             {
  14.                // new widows form with picturebox
  15.                 frm.Show();
  16.             }
  17. }
  18.  
  19.  
  20.  
  21. //code for timer in new window with picture box
  22.  
  23.  
  24. private void timer1_Tick(object sender, EventArgs e)
  25.  {
  26.             if (i == imageList1.Images.Count)
  27.             {
  28.                 i = 0;
  29.             }
  30.             pictureBox1.Image = imageList1.Images[i];
  31.              i++;
  32. }
Jul 3 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: alex | last post by:
Hello, everyone, Thank you in advance. My web application behavies like this: 1: in menu frame, user click any button, 2: the page is downloaded. 3: but the progress bar indicates the page...
1
by: Lizzy | last post by:
I have an internet application which has a progress bar show whenever the customer is requesting data from the server. This progress bar is coded to work in both Netscape 4.75 and above and IE 5.0...
2
by: Howard | last post by:
I wrote a program that downloads rar files off my ftp server using TCP client. I would like to display a progress bar that advances while downloading the files. I tried that, but the program...
3
by: Gary O'Malley | last post by:
Everytime I download a file from the web I get a nice animated dialogue box that shows the size of the file, how much has been received and the approximate remaining time. It also gives the...
2
by: Don Munroe | last post by:
This one has me stumped. I have three web applications running on two different servers. The first that works fine is hosted by a .Net hosting company. Everyone that uses it has no problems...
18
by: Derek Martin | last post by:
Hi there, this is probably really dumb, but I am using a dialog as my main form and my startup form is my splash screen - which implements some progress bars to load up some relevant data. When...
0
by: Frank Rizzo | last post by:
Hello, I've deployed a SmartClient/ClickOnce app to a web server. For whatever reason, for some users the application doesn't fully download. Instead the progress bar is stuck at 5 or 10%. After...
3
by: Ritesh Raj Sarraf | last post by:
Hi, I have a small application, written in Python, that uses threads. The application uses function foo() to download files from the web. As it reads data from the web server, it runs a progress...
2
by: giddy | last post by:
hi , I'm in a slight dilemma. I have an updater program that checks for pending updates and downloads them if the users chooses to. Since i dont need a windows form to check if there is an...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.