Private Sub txtChemin_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
Dim NomeArquivo As String
If KeyCode = vbKeyReturn Then
lblNomActuel.Caption = Empty
txtNouveauNom.Value = Empty
WebBrowser1.Navigate ("about:blank")
lstArchives.Clear
NomeArquivo = Dir(txtChemin & "\*.*")
Do While NomeArquivo <> ""
If InStr(1, Right(NomeArquivo, 4), ".txt") > 0 Or InStr(1, Right(NomeArquivo, 4), ".pdf") > 0 Or InStr(1, Right(NomeArquivo, 4), ".doc") > 0 Or InStr(1, Right(NomeArquivo, 4), ".jpg") > 0 Then
lstArchives.AddItem NomeArquivo
End If
NomeArquivo = Dir
Loop
End If
End Sub