Hi all:
I'm trying to load a listbox with integers from 1 to 120. This works fine, but the lower #s are initiated when I hit the Up arrow. I need this to be reversed. So, going back to old VB6 days, I tried Step -1, but it does nothing.
It adds nothing to the listbox.
Why?
I've tried i = 120 to 1, but it adds nothing, either. I've even added the items to an arraylist and tried that way, still nothing.
Any ideas?
Ron Repp
If gray hair is a sign of wisdom, then I'm a genius.
My newest novel: Wooden Warriors
I'm trying to load a listbox with integers from 1 to 120. This works fine, but the lower #s are initiated when I hit the Up arrow. I need this to be reversed. So, going back to old VB6 days, I tried Step -1, but it does nothing.
Code:
Dim i As Int16
For i = 1 To 120 Step -1
lbTask.Items.Add(i)
Next
Why?
I've tried i = 120 to 1, but it adds nothing, either. I've even added the items to an arraylist and tried that way, still nothing.
Any ideas?
Ron Repp
If gray hair is a sign of wisdom, then I'm a genius.
My newest novel: Wooden Warriors