IVCWizCtlUI::GetOpenFileNameViaDlg Method (String^, String^, String^, String^)

 

Gets the name of a file to open using a dialog box.

Namespace:   Microsoft.VisualStudio.VsWizard
Assembly:  Microsoft.VisualStudio.VsWizard (in Microsoft.VisualStudio.VsWizard.dll)

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^
Return to top
Show: