Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CommonDialog.RunDialog Method

When overridden in a derived class, specifies a common dialog box.

[Visual Basic]
Protected MustOverride Function RunDialog( _
   ByVal hwndOwner As IntPtr _
) As Boolean
[C#]
protected abstract bool RunDialog(
 IntPtr hwndOwner
);
[C++]
protected: virtual bool RunDialog(
 IntPtr hwndOwner
) = 0;
[JScript]
protected abstract function RunDialog(
   hwndOwner : IntPtr
) : Boolean;

Parameters

hwndOwner
A value that represents the window handle of the owner window for the common dialog box.

Return Value

true if the dialog box was successfully run; otherwise, false.

Remarks

This method is invoked when the user of a common dialog box calls ShowDialog, and it must be overridden by inherited classes of CommonDialog to implement a specific common dialog box.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

CommonDialog Class | CommonDialog Members | System.Windows.Forms Namespace | ShowDialog | HookProc

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft