M
M
Mikhail2017-08-12 09:23:09
Arrays
Mikhail, 2017-08-12 09:23:09

C# How to display array values ​​in Label's?

Hello, for example, I have 10 values ​​in the array, I need 10 headers (Label) to be created and the height from each other to be 30px, how to implement?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Griboks, 2017-08-12
@TheMaxai

for(int i=0:i<list.length;i++){Controls.Add(new Label(){Text=list[i],Size=new Size(100,20),Location=new Point(0,30 *i)});}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question