I have a form, in that form I want to buy the purchased products and their characteristics in different panels, I mean, every time I add a new article I want a new panel created. I have tried to instantiate a new panel and give it the characteristics of an already created one, but when giving it Location, it moves the one that already had, and not the new one that it creates.
I think what I need is a for each, but I do not know how to implement it.
What I try to do is. My panel already created is called item, the item has 2 textbox, 1 textbox for article, and another for the feature (Large, medium, small).
Panel myNuevoPanel = new Panel();
myNuevoPanel = item;
myNuevoPanel.Location = new Point(40, 50);
When I try to do that, my item moves, and the new panel I try to create does not move.