private void removeFromContactsToolStripMenuItem_Click(object sender, EventArgs e) { UserInfoContainer activeContainer = GetActiveUserContainer(); if (activeContainer != null) { int userId = activeContainer.UserId; // Add connector line WebConnector.RemoveContact(userId.ToString(), this.accountInfo.Id.ToString()); this.RespositionContacts(activeContainer); this.pnlContactsContainer.Controls.Remove(activeContainer); } }