Here is a simple stacking of pictureboxes, it goes well beyond 64K pixels:
private void test() {
try {
Panel p = new Panel();
p.Size = new Size(100000, 100000);
for (int y = 0; y < 99000; y += 1000) {
PictureBox pb = new PictureBox();
pb.Size = new Size(900, 900);
pb.Location = new Point(0, y);
p.Controls.Add(pb);
}
Log.Success("All done");
} catch (Exception exc) {
Log.Error(exc.ToString());
}
}
Your
Quote:
pb.Location = new Point(pb.Left, ...
may be using an invalid pb.Left value causing all pb's to tend to the right.
:)