Provides a dialog box that enables the user to select one or more files.
Public NotInheritable Class OpenFileDialog
Dim instance As OpenFileDialog
public sealed class OpenFileDialog
This class lets you do the following tasks:
Enable users to select one or more files on the local computer or on a networked computer.
Filter the file types shown in the dialog box.
Specify which filter is used when the dialog box is first displayed.
You cannot specify an initial folder for the OpenFileDialog. The first time the OpenFileDialog is displayed for an application, the initial folder is based on the user's settings. Additional displays of the OpenFileDialog for an application use the folder of the last selected file.
Silverlight does not have a browse folder dialog box and you cannot use the OpenFileDialog to just select a folder.
The Silverlight plug-in does not support OpenFileDialog in full-screen mode. In most cases, displaying this dialog box in full-screen mode will cause the plug-in to revert to embedded mode. To avoid issues on some browsers, you should exit full-screen mode before using this class. For more information, see Full-Screen Support.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.