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 );
Property | Description |
---|---|
|
FileDialog Class | FileDialog MembersTopic | System.WinForms Namespace | FileDialog.OnFileOk | FileDialog.FileOk