private void ValRemvBut_Click(object sender, EventArgs e) { MessageBox.Show(ValLstBox.SelectedIndex.ToString()); if (ValLstBox.SelectedIndex >= 0) { ValLstBox.Items.Remove(ValLstBox.SelectedItem); } }