private void killToolStripMenuItem_Click(object sender, EventArgs e) { hostInstance.KillProcess(Convert.ToInt32(selected.Item.Text)); listView1.Items.Remove(selected.Item); }