public void UpdatePlayerDEL(string name) { if (guiActivity.InvokeRequired) { UpdatePlayerListRemove del = new UpdatePlayerListRemove(UpdatePlayerDEL); this.srvPlayerlist.Invoke(del, new object[] { name }); } else { this.srvPlayerlist.Items.Remove(name); } }