VCWizCtlClass::GetOpenFileNameViaDlg Method (String^, String^, String^, String^)
Visual Studio 2015
Gets the name of a file to open using a dialog box.
Assembly: Microsoft.VisualStudio.VsWizard (in Microsoft.VisualStudio.VsWizard.dll)
public: virtual String^ GetOpenFileNameViaDlg( String^ bstrDlgTitle, String^ bstrInitialDir, String^ bstrFilter, String^ bstrFileName )
Parameters
- bstrDlgTitle
-
Type:
System::String^
Required. A string containing the dialog box title.
- bstrInitialDir
-
Type:
System::String^
Required. A string containing the initial directory for the Open File dialog box.
- bstrFilter
-
Type:
System::String^
Required. A string containing the file filter criteria displayed in the Files of type edit box (for example, Visual C++ Header files (*.h)) in the Open File dialog box.
- bstrFileName
-
Type:
System::String^
Required. A string containing the name of the file display in the File Name edit box in the Open File dialog box.
Return Value
Type: System::String^
Show: