Bonjour;
SVP aidez moi, je veux excuter un programme que j'ai déjà exécuté et il marche bien mais le problème que dans la recherche du mot saisie par l'utilisateur je veux qu'il ne fait pas la diffèrence entre majuscule et minuscule.
le code est :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
   If row.Cells.Item("clmComponents").Value = txtSearch.Text Then
                rowindex = row.Index.ToString()
                found = True
                Dim Component As String = row.Cells("clmComponents").Value.ToString()
 
                Dim Order As String = row.Cells("clmOrder").Value.ToString()
                MsgBox("-Composant existe : " & Component & "       -Numéro :" & Order, MsgBoxStyle.Information)
 
                Exit For
            End If
        Next
        If Not found Then
            MsgBox("-Composant n'existe pas --> Pousser la carte", MsgBoxStyle.Critical)
        End If