Hi,
I am trying to make objects move pixel by pixel after rading the contents of a listbox.
Ie,
ListBox contains: Up, Normal & Down.
Making the listbox is no probs, its the following I'm having trouble with.
I want to make a command button read those items individually, and when there is an up, it moves up one pixel (and +1 to the next time it does it), and when normal just move "number of pixels its currently moving", down, it to decrease the number of pixels it's on, by 1.
The actual coding aspect of thats not the problem, its just the command button to actually read through the list I'm having trouble with. And getting it to stop at the end of the list. If it could scroll through the listbox as it does it then even better.
I've so far tried:
CommandButton.Click
While (lbList.Items.Item("up")) Do
PicBox.Left += 1 Loop Do Loop Until (lbList.Items.Contains("down")) End Sub
That didn't seem to work as expected, and tried a few other ways but couldnt get it going.
Anyone help me out please?
Thanks
I am trying to make objects move pixel by pixel after rading the contents of a listbox.
Ie,
ListBox contains: Up, Normal & Down.
Making the listbox is no probs, its the following I'm having trouble with.
I want to make a command button read those items individually, and when there is an up, it moves up one pixel (and +1 to the next time it does it), and when normal just move "number of pixels its currently moving", down, it to decrease the number of pixels it's on, by 1.
The actual coding aspect of thats not the problem, its just the command button to actually read through the list I'm having trouble with. And getting it to stop at the end of the list. If it could scroll through the listbox as it does it then even better.
I've so far tried:
CommandButton.Click
While (lbList.Items.Item("up")) Do
PicBox.Left += 1 Loop Do Loop Until (lbList.Items.Contains("down")) End Sub
That didn't seem to work as expected, and tried a few other ways but couldnt get it going.
Anyone help me out please?
Thanks