Hi All,

I currently have a form with a listview. On another form, I would like get all the items from that listview. This I can achieve but I always get the "Cross-Thread operation not allowed exception" message.

I've tried the following code to avail. Any suggestions?

vb Code:
  1. Delegate Sub ListView_Delegate(ByVal [tslvw] As ListView)
  2.  
  3.     Private Sub ListView_ThreadSafe(ByVal tslvw As ListView)
  4.  
  5.         If [tslvw].InvokeRequired Then
  6.             Dim MyDelegate As New ListView_Delegate(AddressOf ListView_ThreadSafe)
  7.             Me.Invoke(MyDelegate, New Object() {[tslvw]})
  8.         End If
  9.  
  10.     End Sub