| In VB6, you would do this:
lstMonths.Clear
lstMonths.AddItem ("January")
lstMonths.AddItem ("February")
...
or, if filling from an array
lstMonths.Clear
for i = 0 to 11
lstMonths.AddItem(strMonths(i))
next i
In VB.NET, you would do this:
lstMonths.Items.Clear
lstMonths.Items.Add("January")
lstMonths.Items.Add("February")
...
or, if filling from an array
lstMonths.Items.Clear
for i as integer = 0 to strMonths.GetUpperBound(0)
lstMonths.Items.Add(strMonths(i))
next i |