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.AddOnFileOk

Adds an event handler for the System.WinForms.FileDialog.FileOk event. An event handler can prevent a file dialog box from closing by setting the "cancel" field of the event Object to true.

[Visual Basic]
Public Sub AddOnFileOk( _
   ByVal handler As CancelEventHandler _
)
[C#]
public void AddOnFileOk(
   CancelEventHandler handler
);
[C++]
public: void AddOnFileOk(
   CancelEventHandler* handler
);
[JScript]
public function AddOnFileOk(
   handler : CancelEventHandler
);

Parameters

handler
A CancelEventHandler delegate that represents the method that will handle the System.WinForms.FileDialog.FileOk event.

See Also

FileDialog Class | FileDialog Members | System.WinForms Namespace