Im gonna show you what a Backgroundworker does and can do(just a simple test)
Subscribe, Comment, Rate :)
thaaaaanks
www.nibic.ucoz.com
CODES:
dim i as integer
Dowork:
do untill i = "100"
if backgroundwork1.cancellationPending = true then
Exit sub
end if
i = i + 1
backgroundworker1.reportProgress(0)
systemthreading.Thread.sleep(1)
StartBtn Click:
backgroundworker1.runworkerasync()
timer1.start
StopBTn Click:
backgroundworker1.cancelasync()
timer1.stop
Timer1.tick
label1.text = i
progressbar1.value = i
tinlukasas made some codes that i added too. Ty :) :
Backgroundworker_dowork codes:
Do Until i = 100
i += 1
Invoke(New ReportNum(AddressOf NumToLabel), i)
Make a new sub:
Sub NumToLabel(ByVal num As Integer)
Label1.Text = num.ToString()
ProgressBar1.Value = num
EndSub
BackgroundWorker_DoWork
Do Until i = 100
i += 1
Invoke(New ReportNum(AddressOf NumToLabel), i)
...
...
tenlukasas 1 year ago
@tenlukasas :) ye.. can i add that code to Desc?.. ill give you Credits
TeamNiBiC 1 year ago
@TeamNiBiC ye, you can
tenlukasas 1 year ago
@tenlukasas Thanks so much :)!
TeamNiBiC 1 year ago