I've got a pitiful problem with window desing in winforms. So the document outline is like this:
- TableLayoutPanel
- groupbox1
- panel1
- panel2 (AutoSize = true, Dock = Fill, AutoScroll = true)
- groupbox2 (AutoSize = true, Dock = Fill)
- picturebox (Dock = Fill, there is no AutoSize property for that control)
The important is panel2 and what is in it. I load an image to the picture box and I want to make it resizing (if table layout panel is to big for window I want scroll to appear). What do I do wrong? Now the picturebox has always size 0,0 so image is not visible.