Nov 3, 2015 11:21 AM
(This post was last modified: Nov 3, 2015 11:26 AM by Geekie.)
Hey guys, I have started coding this part yet for Obotle for my chessy pick up line bot for omegle. But what would be the best method to go to next item in a listbox. I don't want to use foreach or for I think thinking it starts off a first item once that item is sent it go to next item in the listbox. Anyone has a good method that would work. This isn't multi thread. a single thread.
I was thinking something like this..
I was thinking something like this..
Code
public void ChessyLine()
{
int currentLine = -1;
if (currentLine == -1)
{
currentLine = listBox1.SelectedIndex;
}
currentLine++;
if (currentLine < listBox1.Items.Count)
{
//code message listBox1.Items[currentLine];
}
else
{
//end of messages
}
}

