This method displays a dialog box for the user to select a file.
void LocalBrowseDlg ( int parentWnd, bool bOpenFileDialog, string defaultExt, string filter, string initialDirectory, ref string FileName )
| Parameters | FileName |
| parentWnd | A handle to the the browse dialog's parent window. |
| bOpenFileDialog | Indicates if the browse dialog will be an "open file" dialog (true) or "save file" dialog (false). |
| defaultExt | For a "save" dialog, this is the file name extension added to the end of the specified file name if the user does not specify an extension. |
| filter | This limits the types of files displayed in an "open file" dialog. For example, .anx would show only files with the .anx file name extension. |
| initialDirectory | This indicates the folder displayed when the dialog is first displayed. |
| FileName | This returns the file name and path of the selected file. |