This documentation is archived and is not being maintained.

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
protected abstract bool RunDialog(
 IntPtr hwndOwner
protected: virtual bool RunDialog(
 IntPtr hwndOwner
) = 0;
protected abstract function RunDialog(
   hwndOwner : IntPtr
) : Boolean;


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.


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.


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