Oh, that's simple enough. The location the user chooses is put into the filename property of the commondialog control.