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)
Usage
Dim returnValue As Integer
Dim fileDialog1 As FileDialog
returnValue = fileDialog1.Show()
Syntax
Function Show() As Integer
int Show();
public: Int32 Show();
public int Show();
function Show() : int;
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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms
See Also
Reference
FileDialog Interface
Microsoft.Office.Core Namespace