vb.net backgroundworker

Associate
Joined
8 Mar 2007
Posts
2,176
Location
between here and there
hey all,

i'm trying to get my backgroudworkers, but i need some help.

I've read everything that google can offer but i'm still unsure.

Can anyone offer little jem's of knowledge or know any good websites??

cheers guys
 
well, i have a program (see other thread titled "make vb.net wait 30 seconds")that is growing in size and it would appear that i'm going to need a background worker to do the work and output to a listbox.

I'd like to do it myself and really just want to get a understanding of what and how it works before trying to code it in to my app.

cheers
 
topbanana,

I did see your post, and thanks. But no sadly i couldn't get it go. :rolleyes:
I suppose i should have posted back there but a workmate pointed me in this direction and since i have loads of commands to run on each form for each "go" button i thought this would prove better.

Having said that, I really don't care as long as it works and i understand why!!

your code..

Code:
Dim SOut As System.IO.StreamReader = myProcess.StandardOutput

Dim exited As Boolean = False

While Not exited
exited = myProcess.HasExited

While (Not SOut.EndOfStream)
Formstatus.statuslist.Add(SOut.ReadLine())
End While

Application.DoEvents()

Thread.Sleep(1000)
End While

...baffled me as i was unable to supplement in my commands that i need to run.

If i wanted to run the "net use \\" + ipaddress.text + " /user:mine spottydog" command and have it show "commands completd" in my listbox before then running "copy c:\" + file.text + " \\" + ip.text + "\c$\temp.txt" and dislpaying the "1file(s) copied"

How would i go about that??

cheers for your help by the way! :D
 
cheers Conrad, that helped. My understanding is getting better.

I am however still interested in what topbanana has to say on the subject
 
Back
Top Bottom