Share via


FileDialog.Show Method

Displays a file dialog box and returns an Integer indicating whether the user pressed the action button (-1) or the cancel button (0).

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Function Show As Integer
'Usage
Dim instance As FileDialog
Dim returnValue As Integer

returnValue = instance.Show()
int Show()

Return Value

Type: System.Int32

Remarks

When you call the Show method, no more code will execute until the user dismisses the file dialog box. In the case of Open and SaveAs dialog boxes, use the Execute method right after the Show method to carry out the user's action.

See Also

Reference

FileDialog Interface

FileDialog Members

Microsoft.Office.Core Namespace