Page 1 of 1

Noob question!!! please help!

PostPosted: October 5th, 2003, 3:02 pm
by Zolan
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

PostPosted: October 5th, 2003, 9:34 pm
by Kambiz
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.

PostPosted: October 6th, 2003, 5:27 pm
by Zolan
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....

PostPosted: October 6th, 2003, 6:33 pm
by Kambiz
:?

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!