CommonDialog.RunDialog Method (IntPtr)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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)

[<SecurityPermissionAttribute(SecurityAction.InheritanceDemand,
    Flags = SecurityPermissionFlag.UnmanagedCode)>]
abstract RunDialog : 
        hwndOwner:nativeint -> bool

Parameters

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.

SecurityPermission

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

.NET Framework
Available since 1.1
Return to top
Show: