Hello,
I have a form with two list boxes and a button that, when clicked, removes the selected item from the first list box and adds it to the second list box. I can add the selected item to the second list box but i can't find a method that allows me to remove the selected item from the first list box. Any suggestions for implementing this? Below is the snippet of code for the button click event.
public partial class TwoListBoxes : Form
{
public TwoListBoxes()
{
InitializeComponent();
}
private void btnTransferItem_Click(object sender, EventArgs e)
{
lstSecond.Items.Add(lstFirst.SelectedItem);
}
}