ok.. Im trying to remove the client name from lbClient
I have this code
Code:
    Public Sub removeClient(ByVal client As ConnectedClient, ByVal ClientName As String)
        If clients.Contains(client) Then
            clients.Remove(client)
            For x = 0 To lbClients.Items.Count - 1
                If lbClients.Items.Item(x) = ClientName Then lbClients.Items.Remove(lbClients.Items.Item(x))
            Next
        End If
    End Sub
as u see I created ClientName as string in the argument, but I donno how to add it to the declaration in the class
Code:
mParentForm.removeClient(Me)
must be changed and I must add something, what is it?