CommonDialog.RunDialog Method (IntPtr)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

	Flags = SecurityPermissionFlag.UnmanagedCode)]
protected abstract bool RunDialog(
	IntPtr hwndOwner


Type: System.IntPtr

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

Return Value

Type: System.Boolean

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.


for unmanaged code to call this method. Associated enumeration: UnmanagedCode

.NET Framework
Available since 1.1
Return to top