When overridden in a derived class, specifies a common dialog box.
[Visual Basic] MustOverride Protected Function RunDialog( _ ByVal hwndOwner As Integer, _ ByVal hookProcPtr As WndProc _ ) As Boolean [C#] protected abstract bool RunDialog( int hwndOwner, WndProc hookProcPtr ); [C++] protected: virtual bool RunDialog( int hwndOwner, WndProc* hookProcPtr ) = 0; [JScript] protected abstract function RunDialog( hwndOwner : int, hookProcPtr : WndProc ) : Boolean;
This method is invoked when the user of a common dialog calls ShowDialog, and it must be overridden by inherited classes of CommonDialog to implement a specific common dialog. An implementation of this method should store the hwndOwner and hookProcPtr parameters in the common dialog structure's hwndOwner and lpfnHook fields.
CommonDialog Class | CommonDialog Members | System.WinForms Namespace | ShowDialog | HookProc