.NET Framework Class Library
UserInterface.SelectFile Method

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > .NET API > MwPDMApi Namespace > UserInterface Class > UserInterface Methods >

.NET Framework Class Library
UserInterface.SelectFile Method

Shows a file dialog box interface.

Namespace: MwPDMApi
Assembly:  MwPDMApi (in MwPDMApi.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

Visual Basic

Public Function SelectFile ( _

root As String, _
filter As String, _
Optional title As String = "Select a file" _
) As String

C#

public string SelectFile(

string root,
string filter,
string title = "Select a file"
)

Visual C++

public:

String^ SelectFile(
String^ root,
String^ filter,
String^ title = L"Select a file"
)

JavaScript

function selectFile(root, filter, title);

Parameters

root

Type: System.String
starting directory for the dialog box

filter

Type: System.String
filter to apply (like description1|filter1|description2|filter2|...)

title (Optional)

Type: System.String
Optional. The title of the form

Return Value

full path name of the selected file

Remarks

See Also

UserInterface Class

UserInterface Members

MwPDMApi Namespace