Name: Anonymous 2010-04-27 9:17
hey/prog/,
i've been using vb.net for about 2-3 years now but i never had to use a method to add a thread when the user requests it.
basically, i have some kind of download manager. the url's are added into a datagridview when a link is found in the clipboard and then when you want it to, it starts downloading all the added links (on a single, separate thread next to the GUI).
how would i create a thread for every row in the datagridview?
pseudo code would look like this:
for i as integer = 0 to datagridview.rows.count
dim thread(i) as new threading.thread
next
and then the thread(i) would do something like.. download_file(datagridview.rows.cells(0).value)
this has been giving me a headache for a while already :/
i've been using vb.net for about 2-3 years now but i never had to use a method to add a thread when the user requests it.
basically, i have some kind of download manager. the url's are added into a datagridview when a link is found in the clipboard and then when you want it to, it starts downloading all the added links (on a single, separate thread next to the GUI).
how would i create a thread for every row in the datagridview?
pseudo code would look like this:
for i as integer = 0 to datagridview.rows.count
dim thread(i) as new threading.thread
next
and then the thread(i) would do something like.. download_file(datagridview.rows.cells(0).value)
this has been giving me a headache for a while already :/