Retrieves the file names of all selected files in the dialog box.
public final String[] getFileNames()
Returns an array containing the file names of all selected files in the dialog box. Each file name includes both the file path and the extension. If multiple files are selected, this method returns the first file name in the list. If no files are selected, this method returns an empty array.
See the OpenFileDialog control topic for a code example using this method.