06-09-2025, 01:29 AM
جميل
كود :
procedure TForm1.ListBox1Click(Sender: TObject);
var
SelectedFile: string;
begin
if ListBox1.ItemIndex >= 0 then
begin
SelectedFile := ListBox1.Items[ListBox1.ItemIndex];
ShellExecute(Handle, 'open', PChar(SelectedFile), nil, nil, SW_SHOWNORMAL);
end;

![[-]](https://delphi4arab.net/forum/D4A2020/collapse.png)