Click or drag to resize

OpenDialog Class

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

Namespace:  VO
Assembly:  VOGUIClasses (in 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
Methods
  NameDescription
Public methodDestroy
Free memory resources allocated for a VObject object and its derived objects.
(Inherited from StandardFileDialog.)
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 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
Display a standard file dialog box. To retrieve the value that the user selected, use the StandardFileDialog:FileName property.
(Inherited from StandardFileDialog.)
Top
Fields
  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

Reference