Ive been trying to add controls to a form, but my code seems to only add the first control and then it doesnt add any more.
Ive tried to make my code simple to try and get it working, but I cant get it working:-
For x = 1 To 10 Step 1
Dim lblTest As New Label
lblTest.Name = "lblLabel" & x
lblTest.Text = "Label " & x
lblTest.Top = x * 10
lblTest.Left = 10
AddHandler lblTest.DragEnter, AddressOf lblDragEnter
AddHandler lblTest.MouseDown, AddressOf lblMouseDown
My codes seems to compile ok, but it wont add the controls.