I have a loop that could create 1 or maybe 10 or maybe 584575 (example, not actually true) FlowLayoutPanels
. For all these panels I want a hover event handler, or maybe later another type of event handler but for now only hover.
How can I make this happen for multiple same type created controls?
FlowLayoutPanel finalResult_panel = new FlowLayoutPanel{
FlowDirection = FlowDirection.LeftToRight,
BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle,
Name = "result_flowLayoutPanel" + i,
Size = new System.Drawing.Size(790, 72),
TabIndex = i,
};