This documentation is archived and is not being maintained.
FileDialog.FileOk Event
.NET Framework 1.1
Occurs when the user clicks on the Open or Save button on a file dialog box.
[Visual Basic] Public Event FileOk As CancelEventHandler [C#] public event CancelEventHandler FileOk; [C++] public: __event CancelEventHandler* FileOk;
[JScript] In JScript, you can handle the events defined by a class, but you cannot define your own.
Event Data
The event handler receives an argument of type CancelEventArgs containing data related to this event. The following CancelEventArgs property provides information specific to this event.
| Property | Description |
|---|---|
| Cancel | Gets or sets a value indicating whether the event should be canceled. |
Remarks
For information about handling events, see Consuming Events.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
FileDialog Class | FileDialog Members | System.Windows.Forms Namespace | OnFileOk
Show: