Bonsoir à toutes et à tous,
En révisant un ancien code, j'aimerai utiliser un TOpenDialog pour ouvrir le dossier "Photos" mais vu mes essais je n'y arrive pas.
Si quelqu'un à une idée, merci d'avance.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 var Gpath : string; begin GPath:= getcurrentdir + '\Photos\'; SL:=TStringList.Create; ListFileDir(GPath,SL); Image1.Picture.LoadFromFile(GPath + SL.Strings[ImgIndex] ); end;
@+,
cincap
Partager