Bonjour !

Je cherche à additionner les champs d'un ListView afin de marquer le total dans une TextBox mais malheureusement je n'y parviens pas

Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
Si quelqu'un pouvait m'aider la dessus