in the Page load. Nothing shows on the screen that I can see anyway. form color is white. What am I missing?
here is code
TractorLabel1, TractorLabel2, etc shows in the immediate window if it step throught the code
What am I missing?
TIA
DougP
< I Built one
here is code
Code:
Dim MyLabel As Label
Dim a, x, y As Integer
x = 100
x = 10
For a = 1 To 50
MyLabel = New Label
MyLabel.Name = "TractorLabel" & Trim(a.ToString)
MyLabel.Height = 98
MyLabel.Width = 10
MyLabel.AutoSize = False
MyLabel.BackColor = Color.DarkMagenta
MyLabel.Left = x + y
MyLabel.Top = 250
MyLabel.BorderStyle = BorderStyle.FixedSingle
MyLabel.Visible = True
y = y + 10
Debug.Print(MyLabel.Name)
Next
What am I missing?
TIA
DougP
< I Built one