//test #region đổi kích thước của group box khi form resize vì không dùng dock được private void home_flowLayoutPanel_Resize(object sender, EventArgs e) { FlowLayoutPanel panel = sender as FlowLayoutPanel; foreach (var item in panel.Controls) { if (item is HomeItemContainer) { HomeItemContainer temp = item as HomeItemContainer; temp.Size = new Size(panel.Size.Width - 15, temp.Size.Height); } } }
private void button1_Click(object sender, EventArgs e) { recentlyPlayed.addItem(new PlaylistContainer()); HomeItemContainer a = new HomeItemContainer(); }