TCnOpenFileDialog Class
Displays a standard dialog box that prompts the user to open a file.
CNClrLib.Control.Base.TClrBaseComponent
CNClrLib.Component.OpenFileDialog.TCnOpenFileDialog
type TCnOpenFileDialog = class(TClrBaseComponent) end;
The TCnOpenFileDialog type exposes the following members.
Name | Description | |
---|---|---|
Create(TComponent) | Creates and initializes a TCnOpenFileDialog instance. (Overrides TClrBaseComponent.Create(TComponent).) | |
Destroy | Frees the resources allocated with a TCnOpenFileDialog instance. (Overrides TClrBaseComponent.Destroy.) |
Name | Description | |
---|---|---|
AddExtension | Gets or sets a value indicating whether the dialog box automatically adds an extension to a file name if the user omits the extension. | |
AutoUpgradeEnabled | Gets or sets a value indicating whether this FileDialog instance should automatically upgrade appearance and behavior when running on Windows Vista. | |
CheckFileExists | Gets or sets a value indicating whether the dialog box displays a warning if the user specifies a file name that does not exist. | |
CheckPathExists | Gets or sets a value indicating whether the dialog box displays a warning if the user specifies a path that does not exist. | |
CustomPlaces | Gets the custom places collection for this OpenFileDialog instance. | |
DefaultClrObject | Get the common language runtime object interface for this component. (Inherited from TClrBaseComponent.) | |
DefaultExt | Gets or sets the default file name extension. | |
DereferenceLinks | Gets or sets a value indicating whether the dialog box returns the location of the file referenced by the shortcut or whether it returns the location of the shortcut (.lnk). | |
FileName | Gets or sets a string containing the file name selected in the file dialog box. | |
FileNames | Gets the file names of all selected files in the dialog box. | |
Filter | Gets 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. | |
FilterIndex | Gets or sets the index of the filter currently selected in the file dialog box. | |
InitialDirectory | Gets or sets the initial directory displayed by the file dialog box. | |
Multiselect | Gets or sets a value indicating whether the dialog box allows multiple files to be selected. | |
ReadOnlyChecked | Gets or sets a value indicating whether the read-only check box is selected. | |
RestoreDirectory | Gets or sets a value indicating whether the dialog box restores the directory to the previously selected directory before closing. | |
SafeFileName | Gets the file name and extension for the file selected in the dialog box. The file name does not include the path. | |
SafeFileNames | Gets an array of file names and extensions for all the selected files in the dialog box. The file names do not include the path. | |
ShowHelp | Gets or sets a value indicating whether the Help button is displayed in the file dialog box. | |
ShowReadOnly | Gets or sets a value indicating whether the dialog box contains a read-only check box. | |
SupportMultiDottedExtensions | Gets or sets whether the dialog box supports displaying and saving files that have multiple file name extensions. | |
Title | Gets or sets the file dialog box title. | |
ValidateNames | Gets or sets a value indicating whether the dialog box accepts only valid Win32 file names. |
Name | Description | |
---|---|---|
Dispose | Releases the resources used by the Component. (Inherited from TClrBaseComponent.) | |
DoGetDefaultClrObject | Represents method | |
DoGetDotNetBaseComponent | Represents method | |
GetClrObject | Represents method | |
OpenFile | Opens the file selected by the user, with read-only permission. The file is specified by the FileName property. | |
RegisterEventCallBack(ClrWString,Pointer) | Add an event to the instance using the specified event name and function pointer which is the event handler. The RegisterEventCallBack method does not directly add the event handler to the event. A hooking mechanism is used such that if the event is fired, the hook event is also fired which in turn calls the function pointer. (Inherited from TClrBaseComponent.) | |
RegisterEventSource | Register the Delphi object which will raise the .Net event handler. (Inherited from TClrBaseComponent.) | |
Reset | Resets all properties to their default values. | |
ShowDialog | Overloaded. Runs a common dialog box with a default owner. | |
ShowDialog(TWinControl) | Overloaded. Runs a common dialog box with the specified owner. | |
UnRegisterEventCallBack(ClrWString,Pointer) | Remove an event from the instance using the specified event name and function pointer which is the event handler. (Inherited from TClrBaseComponent.) | |
UnRegisterEventSource | Unregister the Delphi object which raised the .Net event handler. (Inherited from TClrBaseComponent.) |
Name | Description | |
---|---|---|
OnFileOk | Occurs when the user clicks on the Open or Save button on a file dialog box. | |
OnHelpRequest | Occurs when the user clicks the Help button on a common dialog box. |
See C:\Users\Public\Documents\CrystalNet Technologies\.Net VCL for Delphi Demo Folder after installation for examples of how to use this component.