G
Grober Myttelson
MyMDIChild is an MDI child to MyMainForm. When I run the following code the
MDI child gets to be the owner of the dialog.
MyDialog d = new MyDialog();
if (d.Init())
{
d.Owner = MyMDIChild;
f.ShowDialog();
}
But when I run this code MyMainForm gets to be the owner.
MyDialog d = new MyDialog();
if (d.Init())
{
f.ShowDialog(MyMDIChild);
}
Why doesn't it work the same way in the second example?
Regards
/Grober
MDI child gets to be the owner of the dialog.
MyDialog d = new MyDialog();
if (d.Init())
{
d.Owner = MyMDIChild;
f.ShowDialog();
}
But when I run this code MyMainForm gets to be the owner.
MyDialog d = new MyDialog();
if (d.Init())
{
f.ShowDialog(MyMDIChild);
}
Why doesn't it work the same way in the second example?
Regards
/Grober