M
mick
Ive got a listbox with two items
int index = listBox1.SelectedIndex //This works ok and gives a value of 1
string strItem = listBox1.Text // This however doesnt and throws an
"IndexOutOfRangeException - Index was outside
// the bounds of the Array"
How so? How can the index be out of range when we know it's 1? Anyone with
more of an understanding of listboxes
have any inkling why this Ex is being thrown.
mick
int index = listBox1.SelectedIndex //This works ok and gives a value of 1
string strItem = listBox1.Text // This however doesnt and throws an
"IndexOutOfRangeException - Index was outside
// the bounds of the Array"
How so? How can the index be out of range when we know it's 1? Anyone with
more of an understanding of listboxes
have any inkling why this Ex is being thrown.
mick