NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

FileDialog FileOk Event

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

The following declaration shows the syntax for a method that handles the FileOk event.

[Visual Basic]
Private Sub FileDialogName_FileOk( _
   ByVal sender As Object, _
   ByVal e As CancelEventArgs _
)
[C#]
private void FileDialogName_FileOk(
   object sender,
   CancelEventArgs e
);
[C++]
private: void FileDialogName_FileOk(
   Object* sender,
   CancelEventArgs* e
);
[JScript]
private FileDialogName_FileOk(
   sender : Object,
   e : CancelEventArgs
);

Parameters

sender
The source of the event.
e
A CancelEventArgs that contains the event data. The following CancelEventArgs properties provide information specific to this event.
Property Description
Cancel
Gets or sets a value indicating whether the operation should be cancelled.

See Also

FileDialog Class | FileDialog MembersTopic | System.WinForms Namespace | FileDialog.OnFileOk | FileDialog.FileOk