unit Unit3; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, FileCtrl; type TForm3 = class(TForm) FileListBox1: TFileListBox; procedure FileListBox1Click(Sender: TObject); procedure FormCreate(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form3: TForm3; implementation uses unit1; {$R *.dfm} procedure TForm3.FileListBox1Click(Sender: TObject); var f:string; i:integer; begin dir:=ExtractFilePath(ParamStr(0))+'skins'; //form1.sSkinManager1.SkinDirectory:=dir; f:=FileListBox1.FileName; i:=length(f); while f[i]<>'\' do i:=i-1; delete(f,1,i); delete(f,length(f)-3,4); //form1.sSkinManager1.SkinName:=f; end; procedure TForm3.FormCreate(Sender: TObject); begin dir:=ExtractFilePath(ParamStr(0))+'skins'; FileListBox1.Directory:=dir; end; end.