private void OpenDocumentWhileMainWinClosed(List <string> filePathList) { int listLength = filePathList.Count; int x = 20 * (listLength - 1); int y = 20 * (listLength - 1); for (int i = 0; i < listLength; i++) { documentform = new DocumentForm(filePathList[i]); documentform.TopLevel = false; documentform.SetDesktopLocation(x, y); //documentform.Dock = DockStyle.Fill; //documentform.FormBorderStyle = FormBorderStyle.None; this.Controls.Add(documentform); documentform.Show(); x -= 20; y -= 20; } }