hi, i've a browse dialog with the following constants....however i want to get the filename so does anyone know how i can get that.

VB Code:
  1. Public Const BIF_RETURNONLYFSDIRS = &H1         'Only returns file system directories
  2. Public Const BIF_DONTGOBELOWDOMAIN = &H2        'Does not include network folders below the domain level
  3. Public Const BIF_STATUSTEXT = &H4               'Includes a status area in the dialog box. The callback function can set the status text by sending messages to the dialog box.
  4. Public Const BIF_RETURNFSANCESTORS = &H8        'Only returns file system ancestors
  5. Public Const BIF_BROWSEFORCOMPUTER = &H1000     'Only returns computers
  6. Public Const BIF_BROWSEFORPRINTER = &H2000      'Only returns (network) printers
  7. Public Const BIF_BROWSEINCLUDEFILES As Long = &H4000
  8.  
  9. Public Const MAX_PATH = 255