Click or drag to resize

OpenFileDialog Class

Prompts the user to open a file from the server.
Inheritance Hierarchy

Namespace:  Wisej.Web
Assembly:  Wisej.Framework (in Wisej.Framework.dll) Version: 2.0.0.0
Syntax
public class OpenFileDialog : FileDialog

The OpenFileDialog type exposes the following members.

Constructors
  NameDescription
Public methodOpenFileDialog
Initializes a new instance of OpenFileDialog.
Public methodOpenFileDialog(IContainer)
Initializes a new instance of the OpenFileDialog extender with a specified container.
Top
Properties
  NameDescription
Public propertyAddExtension
Returns or sets whether the dialog box automatically adds an extension to a file name if the user omits the extension.
(Inherited from FileDialog.)
Public propertyCheckFileExists
Returns or sets a value indicating whether the dialog box displays a warning if the user specifies a file name that does not exist.
(Overrides FileDialogCheckFileExists.)
Public propertyDefaultExtension
Returns or sets the default file name extension.
(Inherited from FileDialog.)
Public propertyDialogTemplate
Returns or sets the type of the common dialog UI control to show when calling the ShowDialog method.
(Inherited from CommonDialog.)
Public propertyFileName
Returns or sets a string containing the file name selected in the file dialog box.
(Inherited from FileDialog.)
Public propertyFileNames
Returns the file names of all selected files in the dialog box.
(Inherited from FileDialog.)
Public propertyFileSystem
Returns the IFileSystemProvider that contains the selected FileName.
(Inherited from FileDialog.)
Public propertyFilter
Returns or sets the current file name filter string, which determines the choices that appear in the "Save as file type" or "Files of type" box in the dialog box.
(Inherited from FileDialog.)
Public propertyFilterIndex
Returns or sets the index of the filter currently selected in the file dialog box.
(Inherited from FileDialog.)
Public propertyInitialDirectory
Returns or sets the initial directory displayed by the file dialog box.
(Inherited from FileDialog.)
Public propertyMultiselect
Returns or sets a value indicating whether the dialog box allows multiple files to be selected.
Public propertyCode exampleRoots
List of root IFileSystemProvider file systems displayed by the FileDialog.
(Inherited from FileDialog.)
Public propertySafeFileName
Returns the file name and extension for the file selected in the dialog box. The file name does not include the path.
Public propertySafeFileNames
Returns an array of file names and extensions for all the selected files in the dialog box. The file names do not include the path.
Public propertyShowHelp
Returns or sets whether the Help button is displayed in the file dialog box.
(Inherited from FileDialog.)
Public propertyTag
Returns or sets an object that contains data about the control.
(Inherited from CommonDialog.)
Public propertyTitle
Returns or sets the file dialog box title.
(Inherited from FileDialog.)
Public propertyWindowState
Returns or sets the initial WindowState of the common dialog.
(Inherited from CommonDialog.)
Top
Methods
  NameDescription
Protected methodCreateUI (Inherited from FileDialog.)
Protected methodDispose (Inherited from CommonDialog.)
Public methodGetRoot
Returns the IFileSystemProvider that contains the specified path.
(Inherited from FileDialog.)
Public methodMapPath
Maps the virtual path to the corresponding physical path on the specific IFileSystemProvider implementation.
(Inherited from FileDialog.)
Protected methodOnFileOk
Fires the FileOk event.
(Inherited from FileDialog.)
Protected methodOnHelpRequested
Fires the HelpRequest event.
(Inherited from CommonDialog.)
Protected methodOnLoadPath
Fires the LoadPath event.
(Inherited from CommonDialog.)
Public methodOpenFile
Opens the file selected by the user, with read-only permission. The file is specified by the FileName property.
Public methodProcessFileNames
Receives the file names selected by the user and validates them according to the properties set in the FileDialog instance.
(Inherited from FileDialog.)
Protected methodPromptFileNotFound
Informs the user that the file specified in fileName doesn't exist. You can override this method to provide your text and localization.
(Inherited from FileDialog.)
Public methodReset
Resets all properties to their default values.
(Overrides FileDialogReset.)
Public methodShowDialog
Runs a common dialog box with a default owner.
(Inherited from CommonDialog.)
Public methodShowDialog(ActionDialogResult)
Runs a common dialog box with a default owner.
(Inherited from CommonDialog.)
Public methodShowDialog(Form)
Runs a common dialog box with the specified owner.
(Inherited from CommonDialog.)
Public methodShowDialog(Form, ActionDialogResult)
Runs a common dialog box with the specified owner.
(Inherited from CommonDialog.)
Public methodShowDialogAsync
Runs a common dialog box with the specified owner asynchronously.
(Inherited from CommonDialog.)
Public methodToString
Returns a string that represents the FileDialog.
(Inherited from FileDialog.)
Top
Events
  NameDescription
Public eventFileOk
Fired when the user clicks on the Open or Save button on a file dialog box.
(Inherited from FileDialog.)
Public eventHelpRequested
Fired when the user clicks the Help button on a common dialog box.
(Inherited from CommonDialog.)
Public eventLoadPath
EXPERIMENTAL: Fired when the file dialog is loading a file or folder.
(Inherited from CommonDialog.)
Top
Extension Methods
  NameDescription
Public Extension MethodBeep
Sounds a tone through the computer's speaker.
(Defined by Interaction.)
Public Extension MethodInputBox
Displays a prompt in a dialog box, waits for the user to input text or click a button, and then returns a string containing the contents of the text box.
(Defined by Interaction.)
Public Extension MethodInputBoxAsync
Asynchronous displays a prompt in a dialog box, waits for the user to input text or click a button, and then returns a string containing the contents of the text box.
(Defined by Interaction.)
Public Extension MethodMsgBox
Displays a message in a dialog box, waits for the user to click a button, and then returns an integer indicating which button the user clicked.
(Defined by Interaction.)
Public Extension MethodMsgBoxAsync
Asynchronously displays a message in a dialog box, waits for the user to click a button, and then returns an integer indicating which button the user clicked.
(Defined by Interaction.)
Top
Remarks

You can:

You must add at least one IFileSystemProvider to the Roots collection before showing the dialog.

See Also