I am stuck at one multithreaded app. Basically I am trying to update one control from background thread.
There are two forms.
frmLog has one list box (lstStatus) and one function as following
Public Sub SetStatus(txt as string) as string lstStatus.Items.add(txt) End Sub
frmMain has background worker and it calls frmLog.Setstatus("status here"). I tried various methods but somehow that listbox is not being updated when method is called from background worker.
I had also tried .InvokeRequired and .Invoke method but .invokerequired always returned me false so nothing helped, not sure if I had missed anything in that.