Modifying WinForm UserControl at runtime
I have a UserControl (ResultContainerPanel) that at runtime I am trying to add a second UserControl (Result) to. The Code works and I see the Result objects that I am placing in ResultContainerPanel.Control, but the Result objects are not keeping their location. It looks like they are stacking on top of one another. I have viewed the Location of the objects and they seem to be correct.
This is the user control ResultContainerPanel
This is the user control Result
This is the result off adding 3 Result objects at runtime. There are 3 controls in the ResultContainerPanel with varying locations, but it appears that all three stack on top of each other.
Struggling to understand, any help would be greatly appreciated.