ou are creating a multiple-document interface (MDI) application by using the .NET Framework 3.5. You configure the frmParent form to be an MDI parent. You write the following code segment. (Line numbers are included for reference only.)
01 Form frmChild = new Form();
02 Form frmParent = this;
03
You need to associate and display the frmChild form and the frmParent form.Which code segment should you add at line 03?
A.
frmChild.MdiParent = frmParent;frmChild.ShowDialog();
B.
frmChild.MdiParent = frmParent;frmChild.Show();
C.
frmChild.IsMdiContainer = true;frmChild.ShowDialog();
D.
frmChild.IsMdiContainer = true; frmChild.Show();