vayaMierdaForo
Member
- Joined
- May 20, 2006
- Messages
- 7
- Programming Experience
- Beginner
Hello!
I have an ArrayList of Strings. And I have to add one checkbox to every word contained in the ArrayList.
I try with this:
But with this code, only the first check is showed. And I don't know why!
Thanks in advance
I have an ArrayList of Strings. And I have to add one checkbox to every word contained in the ArrayList.
I try with this:
VB.NET:
Dim startPositionInForm = 30
For i = 0 To ArrayList.Count - 1
Dim check As New System.Windows.Forms.CheckBox
check.Location = New System.Drawing.Point(16, startPositionInForm + 20)
check.Name = ArrayList.Item(i)
check.Size = New System.Drawing.Size(94, 24)
check.TabIndex = i
check.Text = ArrayList.Item(i)
check.Checked = True
Controls.Add(check)
startPositionInForm = startPositionInForm + 20
Next
Refresh()
Thanks in advance