private: System::Void btnDelete_Click(System::Object^ sender, System::EventArgs^ e) { /*---Two ways to delete selected item from list box the RemoveAt function uses the SelectedIndex Property to know which item to delete The SelectedIndex is a Runtime Property Only. * lbProducts->Items->RemoveAt(lbProducts->SelectedIndex); */ lbProducts->Items->Remove(lbProducts->SelectedItem); }