Please discuss general Delphi programming topics here.

Dont laugh now!
(DELPHI)
I am working on an mp3 player but i cant open files, just directorys with browser dialog.
i have understood that the best way to open just files is with opendialog but i dont exactly know how to acomplish the task! very thankful for answers!
//Zolan
Zolan
Active Member

Posts: 12
Joined: October 5th, 2003, 2:58 pm

I think it's better you have some challenge.

Go to the Dialogs component palette, click on the OpenDialog component, and then press F1. You will find all you need to know.

Kambiz

Posts: 2424
Joined: March 7th, 2003, 7:10 pm

Kambiz wrote:I think it's better you have some challenge.

Go to the Dialogs component palette, click on the OpenDialog component, and then press F1. You will find all you need to know.

tried that but....
Zolan
Active Member

Posts: 12
Joined: October 5th, 2003, 2:58 pm

Drop a TOpenDialog on the form. Where you want to ask for a file, enter the following code:

Code: Select all
if OpenDialog1.Execute then  ShowMessage(OpenDialog1.FileName);

That's all!

Kambiz