//***********Start of My Code************** //---class or module level variables go here after the InitializeComponent(); stuff static double grandTotal = 0; //hold the running total static int numItems = 0; //hold the number of items bought private: System::Void btnAdd_Click(System::Object^ sender, System::EventArgs^ e) { //---take item and cost & put them in textboxes String^ itemSelected = lstItems->Text->Substring(0,15)->Trim(); double price = Convert::ToDouble(lstItems->Text->Substring(16)->Trim()); //---now assign values to the textboxes txtItem->Text = itemSelected->Trim(); txtCost->Text = Convert::ToString(price); //---add this cost to the running total grandTotal += price; numItems++; //same as numItems = numItems + 1 or numItems += 1 }