I need to figure out a piece of code to use to complete my project. I have attached a screenshot of the form and I labeled the important components to what I'm trying to accomplish. The form allows to user to add/remove books to a shopping cart which is the form of a combobox, and there is a receipt section which consists of 2 labels. One label displays the titles of the books in the shopping cart, the other label displays the prices. The only thing I need to figure out is how to have the correct book prices removed from the 2nd label when the book is removed from the shopping cart. The code I use to add prices is:
Label5.Text &= me.bookpriceLabel1.Text & vbCrLf
Please refer to the screenshot to get a better understanding of how it's layed out. Thanks.