Edit

Share via


FileDialog.Show Method

Definition

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

public:
 int Show();
public int Show ();
abstract member Show : unit -> int
Public Function Show () As Integer

Returns

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.

Applies to