The example demonstrates how to determinate the selected file name in the file dialog box.
Download the file by clicking the link above.