private void Server_ClientDisconnected(object sender, ClientDisconnectedEventArgs e) { lblClients.Invoke((MethodInvoker)(() => lblClients.Text = $"Clients connected: {server.NumberOfConnectedClients}")); this.Invoke((MethodInvoker)(() => clientlog.TxtClients($"Disconnected: {e.Client.ToString()}"))); }