Click or drag to resize

OpenDialog Class (Typed)

X#
Present the user with a standard "file open" dialog box.
Inheritance Hierarchy
Object
  VObject
    StandardDialog
      StandardFileDialog
        OpenDialog

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.19
Syntax
 CLASS OpenDialog INHERIT StandardFileDialog
Request Example View Source

The OpenDialog type exposes the following members.

Constructors
  NameDescription
Public methodOpenDialog
Construct a standard "file open" dialog box.
Top
Properties
  NameDescription
Public propertyCode exampleCaption
Return or update the title displayed in the dialog window.
(Inherited from StandardFileDialog.)
Public propertyDefExt
Return or update the default file extension displayed in the dialog window.
(Inherited from StandardFileDialog.)
Public propertyDlgStyle (Inherited from StandardFileDialog.)
Public propertyCode exampleFileName
A string representing the name of the file which the user selected. If the user cancels, the file name is NULL_STRING.
(Inherited from StandardFileDialog.)
Public propertyFilterIndex
A string representing the index of the effective filter.
(Inherited from StandardFileDialog.)
Public propertyHideReadOnly (Inherited from StandardFileDialog.)
Public propertyCode exampleInitialDirectory
Set the initial directory for the dialog window. The tree control will be initially positioned accordingly.
(Inherited from StandardFileDialog.)
Public propertyReadOnly
A logical value indicating that the file's read-only attribute is set.
(Inherited from StandardFileDialog.)
Top
Functions
  NameDescription
Public methodDestroy (Overrides Destroy.)
Public methodDispatch
Intercept messages normally handled by the dialog box procedure in COMMDLG.DLL. Override this method to add your own custom processing.
(Inherited from StandardFileDialog.)
Public methodHelp
Provide a means of displaying help when the HELP button is pressed. The HELP push button will be displayed if the SetStyle(OFN_SHOWHELP) message has been sent to the dialog object.
(Inherited from StandardFileDialog.)
Public methodHelpRequest (Inherited from StandardFileDialog.)
Public methodPostInit (Inherited from StandardFileDialog.)
Public methodCode exampleSetFilter
Set single or multiple filters and descriptions for the standard dialogs. If multiple filters are specified, a filter index may also be specified.
(Inherited from StandardFileDialog.)
Public methodCode exampleSetStyle
Set the style for the dialog window.
(Inherited from StandardFileDialog.)
Public methodSetStyleEx
Set the Exstyle for the dialog window.
(Inherited from StandardFileDialog.)
Public methodShow (Overrides Show.)
Top
Globals and Defines
  NameDescription
Public fieldoCargo
Cargo slot.
(Inherited from VObject.)
Top
Remarks
This type of dialog box presents the user with a list of file names. It allows the user to select a name from the list (or type the name of an existing file), and provides the ability to specify drive and/or directory if necessary. If a user enters a file name that does not already exist, Windows displays a modal dialog box indicating that the file name does not exist for the specified drive, directory, and file type.
See Also