Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: DialogResult ShowDialog(Form, bool)

Declaration

public virtual DialogResult ShowDialog(
    Form centerInForm = null,
    bool repositionParentAfterwards = false
)

Summary

Shows the form as a modal dialog box with the currently active window set as its owner.

Parameters

FormcenterInFormIf specified, this form will be centered relative to the specified form.
boolrepositionParentAfterwardsIf set to true, will cause the parent to be moved after this form is closed to be centered with respect to it.

Returns

One of the DialogResult values.