Hello everyone I have the following situation with the background worker and hope someone can help me with this.
1.- i have a form and in that form I have the background worker. the methods doWork, Progresschanged, Runworklercompleted are in the form.
2.- when i star doWork, it executes a method called Process1 from class AMOUNTS from another class and it works fine, the program does it's work.
3.- the thing is that i have to fill a listbox with each step the program is doing.
4.- in the main form I have a method which is public called LogEvent. in this method is where i update the listbox with the steps of the program.
5.-in Process1, i want to send those steps to the LogEvent which is on form1. but nothing is being shown.
6.- I would apreciate a code as an example, i tried to use InvokeRequired but I dont know how to make it work with methods.
Thanks in advance.