public PreviewFrom(List <List <Image> > haimgList) { InitializeComponent(); int fHeight = 0; int fWidth = haimgList[0][0].Width; for (int i = 0; i < haimgList.Count; i++) { List <Image> newImgList = PictureMerge.transferPicture(haimgList[i], 578, 0); Image a = PictureMerge.PictureBoxShow2(newImgList); PictureBox p = ControlCom.createPictureBox(0, fHeight, fWidth, 818, a); this.panel1.Controls.Add(p); fHeight += 818; MessageBox.Show(haimgList.Count.ToString()); } }