|
-
Jan 4th, 2010, 12:58 AM
#1
Thread Starter
Member
Progress Bar Marquee
Hello all,
I have a problem (actually I am using VB 2008, but the code is the same, so should not be a problem), here is the situation:
First, I have to download one file
Second, I have to do another job (which I cannot calculate the progress of)
Third, I have to download another file
For downloading files I know how to obtain the progress of the download, so I have a progress bar to display it, however when it's doing the other job, since I cannot calculate it's progress, I'd like the progress bar to switch to Marquee style and back when the third job starts. However I never saw any trace of the Marquee becoming active, here is my code:
Code:
If StartDownload(txtURL.Text, GetTempFolder() & "\BTV" & GetVideoName(txtURL.Text) & ".htm") = True Then
System.Threading.Thread.Sleep(1000)
prgCurFile.Style = ProgressBarStyle.Marquee
prgCurFile.Refresh()
Application.DoEvents()
After that code, I continue downloading the next file, please help!
Thanks in advance for any possible answers!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|