Im trying to make 400 textlabels at runtime
but i dont see them , Why not ?

Private orderArray(41, 10) As Label
for x=1 to 40
    For u = 1 To 10
          orderArray(x, u) = New Label
          orderArray(x, u).BorderStyle = BorderStyle.Fixed3D
          orderArray(x, u).Text = "----klhjk--"
          orderArray(x, u).Height = 20
          orderArray(x, u).Width = 140
          orderArray(x, u).Top = 158 + (x * 27)
          orderArray(x, u).Left = 35 + (u * 140)
          orderArray(x, u).Show()
    Next u
Next x

I see Nothing , plzz help me

Recommended Answers

All 2 Replies

instead of orderArray(x, u).Show()
do:
Me.Controls.Add(orderArray(x, u))

Great

It works

Thank you very mutch

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.