Dynamically Add Labels Vertically Down Page

chalupabatman

Member
Joined
Jun 3, 2014
Messages
16
Programming Experience
Beginner
I know the syntax to create labels dynamically, but how can I control the positioning of labels so that they are created vertically down the page to look like such
VB.NET:
label1
label2
label3
label4
label5
 
Set the controls Location property (or Left/Top properties), by using same left position and calculate top position.

You can also use FlowLayoutPanel container control, that will manage this automatically with FlowDirection set to TopDown.
 
Set the controls Location property (or Left/Top properties), by using same left position and calculate top position.

You can also use FlowLayoutPanel container control, that will manage this automatically with FlowDirection set to TopDown.


Thank you for that valuable information! I didn't realize that the FlowLayoutPanel could be set to TopDown that is what I was after.
 
Back
Top