private void Remove_btn_Click(object sender, EventArgs e) { if (LiteralListBox.SelectedItem != null) { LiteralList.RemoveAt(LiteralListBox.SelectedIndex); LiteralListBox.Items.RemoveAt(LiteralListBox.SelectedIndex); } }