I have a single form C# application called MainUI. On MainUI I have a
listbox that will log certain activity occuring in a seperate class file.
For example, the Class has a function that loops through a directory and
determines the filenames within the directory. Within this function I would
like the filenames to be sent to the listbox on MainUI. I can't seem to
figure this out. I have tried creating a public update method in MainUI to
update the listbox and call it from the seperate class (by creating a new
MainUI object in the seperate class). The code runs but the listbox doesn't
get updated. Please help...