I am trying to display images in a Panel control (I am using WinForms), however the images are bigger than the panel's maximum size (32767 pixels).
I searched the Internet about the issue, however I only found a few ready solutions I do not understand, therefore do not want to use them.
What and is there a good way around this issue aside from using WPF?
As of now, I am thinking of manually iterating over controls in Panel and changing their location as needed, however, I think it will not be very efficient and ugly.
Sample code to reproduce the problem:
for (int i = 0; i < 300; i++) {
PictureBox picbox = new PictureBox();
picbox.BackColor = Color.Red;
picbox.Width = 500;
picbox.Height = 250;
picbox.Top = i * 500;
panelDisplay.Controls.Add(picbox);
}