房租管理小软件(七):flowlayoutPancel 中增加分类控
见下图的
1 string FNodeName = dt.Rows[i]["FNodeName"].ToString(); 2 if (i == 0) 3 { 4 RoomControl.Thumbnail.GroupItem gItem = new GroupItem(); 5 gItem.Size = new Size(System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width-70, gItem.Size.Height);//需要把分类的迟寸设成, 6 7 gItem.labelControl1.Text = FNodeName; 8 //v.Take(1).Single(). 9 this.thumbnailFlowLayoutPanel1.Controls.Add(gItem); 10 this.thumbnailFlowLayoutPanel1.SetFlowBreak(gItem, true); 11 }