我已经设法从我的列表框中删除了一个项目,但是我想要它:
阅读该特定商品标签并将其从最终价格中删除
这是我使用Visual Basic的代码:
Private Sub DeleteOrder_Click(sender As Object, e As EventArgs) Handles DeleteOrder.Click
OrderListBox.Items.Remove(OrderListBox.SelectedItem)
Dim Value As Integer
Value = OrderListBox.SelectedItem(Page3.Controls.Find("p3label" + CStr(1), True)(0).Text)
Page3.MAX = Page3.MAX - Convert.ToDouble(Value)
MessageBox.Show(Page3.MAX)
End Sub