The Delphi VCL comes with several overloaded SelectDirectory functions declared in FileCtrl, one of which uses the ShBrowseForFolder Windows API function. It passes a callback function which tries to do the following: Position the dialog on the monitor on which the application's main form is shown. Center the dialog on that monitor Select the given … Continue reading Fixing the SelectDirectory function