FileOk Event
Collapse the table of content
Expand the table of content

FileDialog.FileOk Event

Occurs when the user clicks on the Open or Save button on a file dialog box.

[Visual Basic]
Public Event FileOk As CancelEventHandler
public event CancelEventHandler FileOk;
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.


For information about handling events, see Consuming Events.


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

© 2015 Microsoft