In This Article

FormUserPromptOwnerProvider Class

Defines an implementation of IUserPromptOwnerProvider where a Form will be the owner.

public class FormUserPromptOwnerProvider : UserPromptOwnerProvider, IUserPromptOwnerProvider
Inheritance:
object UserPromptOwnerProvider object
Implements:
IUserPromptOwnerProvider

Remarks

For internal use only.

Constructors

FormUserPromptOwnerProvider(Form)

Initializes a new instance of the FormUserPromptOwnerProvider class.

public FormUserPromptOwnerProvider(Form ownerForm)
Parameter Type Description
ownerForm Form

The owner Form.

Properties

Priority

Gets the priority of this provider compared to other providers, where the smallest value is given the highest priority.

public override int Priority { get; }

Property Value

int:

The priority of this provider.

Remarks

Priority values may be negative. (Default = 0)

Methods

GetDialogOwnerWindow()

Gets an IWin32Window that indicates the window to own any child dialog boxes.

public override IWin32Window GetDialogOwnerWindow()

Returns

IWin32Window:

An IWin32Window, or null if an owner is not available.

Inherited Members