I am using background worker to report progress on the screen.
In the Main.vb I have the following code:
When I call this from Main.vb I use:Code:Public Sub report(ByVal sender As System.Object, ByVal e As System.ComponentModel.ProgressChangedEventArgs) Handles bwlistener.ProgressChanged Dim message As String = e.UserState logRTB.AppendText(message & vbCrLf) End Sub
It works great.Code:bwlistener.ReportProgress(0, "Some status text goes here")
The problem is when I try to call it from any other module in my project.
When I call it OtherFile.vb:
It doesn't work... The program doesn't crash. Debug goes through everything but no output is actually shown to the end user.Code:Main.bwlistener.ReportProgress(0, "Some status text goes here")
Why would it not work?
Any ideas?
Thanks!




Reply With Quote
