I have a function that is called when a file is modified in a folder. This function updates the items of a listview which is stored in the UI.
Here is the function :
Private Sub FileChangeNotify()
Try
LstMoulures.Items.Refresh()
Catch ex As Exception
MsgBox(Ex.exception)
End Try
End Sub
Here is the error: "Le thread appelant ne peut pas accéder à cet objet parce qu'un autre thread en est propriétaire." (Translation : The calling thread cannot access this object because it is owned by another thread)
Thanks.