This documentation is archived and is not being maintained.

VCWizCtlClass.GetOpenFileNameViaDlg Method

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)

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

Implements

IVCWizCtlUI.GetOpenFileNameViaDlg(String, String, String, String)

Show: