Click here to Skip to main content
15,917,481 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi. i am creating a win form in which i am creating a download manager..
i want when user download file it should display all the URL which are currently downloading..
i want tha user can see the URL which are currently downloading..please help me in this
Posted
Comments
[no name] 20-May-13 11:19am    
Help you with what exactly? You have to ask a question or at the very least describe some sort of a problem before you can expect to get any kind of help.... And before you just repeat yourself, "i want" is not a question or a description of a problem.
shashank 1068 20-May-13 11:27am    
kkk
Dim webclient As New Net.WebClient()
Dim URL As String
Dim filename As String
Dim filereader As StreamReader
filereader = New StreamReader(OpenFileDialog1.FileName)
TextBox1.Text = filereader.ReadLine()
For i As Integer = 0 To 10
URL = filereader.ReadLine()
MsgBox(URL)
filename = "F:\shashank\" & i
webclient.DownloadFile(URL, filename)
Next

like i have this code for downloading.. but in this i want to display all the URL's in the textbox which are currently downloading
[no name] 20-May-13 11:38am    
Okay so I would suppose that sometextbox.Text = filename is not working for you for some reason?
shashank 1068 20-May-13 11:40am    
yes!!
[no name] 20-May-13 11:44am    
Yes what?

1 solution

LIek has alreayd been siad. You don't have the skillset to pull this one off yet.

After look at your code snippet, putt the URL in a textbox would be the easiest thing in the world to do. The problem is that your downloading files on the UI thread, preventing the textbox from drawing itself.

You ened to completely redesign this app from the ground up to use background threads to do the work and the UI thread to, well, maintain the UI, including your on-screen list of URL's you're downloading.

The way you have this app written now, it is doomed to failure.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900