I wrote a function to dynamically add elements to the \"Panel\".
public int State; public Point Point = new Point(0, 0); public void DialogAdd(string
When placing the controls inside the panel, you have to compensate for the scroll position:
Basically, try using this line:
d.Location = new Point(0, panel1.AutoScrollPosition.Y + Point.Y);