Difference between .Owner property and ShowDialog(IWin32Window owner)?
问题 I presume a winform's owner can be set explicitly via the .Owner property OR by passing the owner in the overloaded method ShowDialog(IWin32Window owner) I am unable to understand why these methods exhibit different behavior when working with MDI forms . I have created an MDIParent and an MDIChild. I also have a simple winform MyDialogBox that displays its owner on load. MessageBox.Show("Dialog's owner is " + this.Owner.Name); Method A - In the load of MDIChild I have the following code,