{
Int I=xtraTabbedMdiManager1. Pages. IndexOf (xtraTabbedMdiManager1. SelectedPage);//the current form of serial number
The Form Form=this. XtraTabbedMdiManager1. SelectedPage. MdiChild;
If (the form is FrmMain)
{
return;
}
Form. The Close ();//don't close the module main form
IList list=this. XtraTabbedMdiManager1. Pages;
For (int j=I + 1; J & lt; XtraTabbedMdiManager1. Pages. Count; J++)
{
The Form f=(Form) a list [j];
F. lose ();
}
//show the adjacent form
//xtraTabbedMdiManager1. SelectedPage=xtraTabbedMdiManager1. Pages [I];
}
So where is wrong,
CodePudding user response:
Where is the great god, seek guidanceCodePudding user response:
XtraTabbedMdiManager1. Pages. Count each time change, out in the first variable, according to the variable cycle,