Hi,
Was wondering: How can I set for example a value of a label within the progress that my bagroundworker does? So for example my backgroundworker is scanning files (in my case) and I want it to set label1.text equal to the name of the file it's scanning at that moment, but how do I do this? because when I do like:
Then it says "access denied" or something. So how do I change the label2.text with my backgroundworker progress?
Thanks in advanced,
Skyfe.
Was wondering: How can I set for example a value of a label within the progress that my bagroundworker does? So for example my backgroundworker is scanning files (in my case) and I want it to set label1.text equal to the name of the file it's scanning at that moment, but how do I do this? because when I do like:
Private Sub bgwScan1_DoWork(ByVal sender As Object, _
ByVal e As System.ComponentModel.DoWorkEventArgs) Handles bgwScan1.DoWork
[... some code ...]
label2.text = foundDir
[... some code ...]
End Sub
Then it says "access denied" or something. So how do I change the label2.text with my backgroundworker progress?
Thanks in advanced,
Skyfe.