ok.. Im trying to remove the client name from lbClient
I have this code
as u see I created ClientName as string in the argument, but I donno how to add it to the declaration in the classCode: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
must be changed and I must add something, what is it?Code:mParentForm.removeClient(Me)




Reply With Quote