Dynamic field controls

Nauris

New member
Joined
Sep 24, 2007
Messages
4
Programming Experience
Beginner
Hi..

I'm a little bit newbie in VB.. so I don't know how to make dynamic field of.. e.g. labels.
The idea is to read text file, with x and y variables.. so if x = 5 and y = 6
there should be 5 labels in colomns and 6 rows.. how should i do that? (file reading isn't problem)

PS.: sorry, for my english.

With honor,
Nauris
 
Firstly you should use a TableLayoutPanel. You would set the ColumnCount and RowCount to the appropriate values and then just create the appropriate number of Label objects and add them to the TLP's Controls collection.
 
Back
Top