Delphi DirectoryListBox returns wrong Directory Programming Software Development by Bo_1 If I doubleclick on a DirectoryListBox, Delphi returns the directory above the clicked one. A second doubleclick on the same directory returns the wanted directory. How do I select the intended directory in one doubleclick? In the OnDblClick event I use Dir:=DirectoryListBox1.Directory. What am I doing wrong? Anybody? Regards Bo Re: Delphi DirectoryListBox returns wrong Directory Programming Software Development by SalmiSoft It is always a good idea to look at the source code in cases like this, if you have the VCL sources in your Delphi version. That way you can trace how the control responds to the double click. Basically what is happening is that TDirectoryListBox fires off the onDblClick event *before* it changes the directory. This is so you can handle that event… Re: Delphi DirectoryListBox returns wrong Directory Programming Software Development by Bo_1 Thank You very much! I thought it was someting like this, but I have struggled many years with this. I'll try the solution. Regards Bo Re: Delphi DirectoryListBox returns wrong Directory Programming Software Development by Bo_1 Tested and works very good, now I have learned me something new and essential. Thank you very much, good to have Daniweb! Regards Bo