1 2 3 4 5 6 7 8 9 10 11 12 13
|
Private Sub btnTotalAReglerFictifTrouverFiche_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTotalAReglerFictifTrouverFiche.Click
Dim souTot As Double
Dim strSousTot As String
Dim total As Double
Do While lvEvtTrouverFiche.SelectedItems.Count ' Tant qu'un item est sélectionné
strSousTot = lvEvtTrouverFiche.SelectedItems(0).SubItems(4).Text ' On sélectionne son prix
souTot = Convert.ToDecimal(strSousTot) ' On cast le string en double
total += souTot
Loop
tbTotalARegler.Text = total
End Sub |