I have to create variable number of Labels and next to them TextBox controls – arranging the whole thing into a column, each line a Label and a TextBox. If the my Main window is smaller than the total height of all the TextBox controls, somehow I need a scrollbar which can scroll the list of TextBoxes. Pressing the enter key would have to take the focus to the next TextBox and also scroll in case of too many TextBoxes.
This is a rather generic problem, I guess there are already some pre-baked solutions for this.
Any advice?
You can use TableLayoutPanel as container for controls (Labels and TextBoxes) and create them dynamicaly in code.
Example: