' Fonction Suivante :
If File1.ListCount = 0 Then Exit Sub
For num = 0 To File1.ListCount - 1
If File1.Selected(num) = True Then Exit For
Next
If num File1.ListCount Then num 0
File1.Selected(num) = FalseIf num + 1 File1.ListCount Then num -1
File1.Selected(num + 1) = True
' Fonction Precedante :
If File1.ListCount = 0 Then Exit Sub
For num = 0 To File1.ListCount - 1
If File1.Selected(num) = True Then Exit For
Next
If num File1.ListCount Then num 0
File1.Selected(num) = FalseIf num - 1 -1 Then num File1.ListCount
File1.Selected(num - 1) = True
Note : Dans la procedure File1_Click, tu dois avoir un code du genre :
nom$ = File1.Path
if Right$(Nom$,1)<>"" then nom$=nom$+""
nom$=nom$+File1.Filename
Picture1.Picture = LoadPicture(nom$)
Une erreur arrive lorsqu'on utiliser les fonctions ci-dessus. La variable File1.Filename est vide lorsqu'on Selectionne un fichier avec du code. Il faut donc ajouter la ligne :
If File1.FileName = "" Then Exit Sub
Ce qui nous donne :
nom$ = File1.Path
if Right$(Nom$,1)<>"" then nom$=nom$+""
If File1.FileName = "" Then Exit Sub
nom$=nom$+File1.Filename
Picture1.Picture = LoadPicture(nom$)