Hi all,
am developing a C# Winform Application.Am using the MDI form in my application also i placed a Tab Control in MDI main form.When i tried to show a new form as a MDIchild,But it not showing .
private void mnuForm1_Click(object sender, EventArgs e)
{
Form1 frm1= new Form1();
frm1.MdiParent = this;
frm1.Show();
}
{
Form1 frm1= new Form1();
frm1.MdiParent = this;
frm1.Show();
}
am getting the
"A first chance exception of type 'System.ArgumentException' occurred in mscorlib.dll " Error in output window.If i delete that Tab control form MDI then its working...
Here,
What's wrong with adding TabControl in MDIform.
Thanks in Advance..


Dharam RaiRank #3,922 · 378 reputationPosted Jan 7, 2016, 11:12 PM EST
Prem Anandh JRank #8,962 · 213 reputationPosted Jan 7, 2016, 11:56 PM EST
Ranjit PowarRank #553 · 4.4K reputationPosted Jan 8, 2016, 5:58 AM EST
Dharam RaiRank #3,922 · 378 reputationPosted Jan 8, 2016, 10:08 PM EST
Prem Anandh JRank #8,962 · 213 reputationPosted Jan 13, 2016, 1:38 AM EST
ActiveMdiChild.Close();
frmobj.ShowDialog();