private void Inbox_Load(object sender, EventArgs e) { Hindicator.Size = new System.Drawing.Size(71, 3); Hindicator.Location = new System.Drawing.Point(46, 48); for (int i = 0; i < 9; i++) { Messsage m = new Messsage(); flowLayoutPanel1.Controls.Add(m); } }
private void lblPromotions_Click(object sender, EventArgs e) { Hindicator.Size = new System.Drawing.Size(87, 3); Hindicator.Location = new System.Drawing.Point(200, 48); foreach (Messsage control in flowLayoutPanel1.Controls) { flowLayoutPanel1.Controls.Clear(); control.Dispose(); } for (int i = 0; i < 8; i++) { Messsage m = new Messsage(); flowLayoutPanel1.Controls.Add(m); } }