I have a thread that calls a method that does "Invoke" in the listview, but this method only works with one parameter, I need it to accept 3.
My method:
Private Sub Updatelv(ByVal usuarios As String, ByVal status As String, ByVal datahoraAtual As String)
If Me.InvokeRequired Then
Dim args() As String = {usuarios, status, datahoraAtual}
## Cabeçalhos ##Me.Invoke(New Action(Of String)(AddressOf Updatelv), args)
Return
End If
Me.lstvDados.Items.Add(New ListViewItem(New String() {usuarios, status, datahoraAtual}))
End Sub