Home > Net >  How to realize xtraTabbedMdiManager control right all window close to the left or right
How to realize xtraTabbedMdiManager control right all window close to the left or right

Time:09-15

As title, have made a close all and besides all closed, , private void rightToolStripMenuItem_Click (object sender, EventArgs e)
{
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 guidance

CodePudding user response:

XtraTabbedMdiManager1. Pages. Count each time change, out in the first variable, according to the variable cycle,
  • Related