Sunday, December 1, 2013

Listbox.selectedIndex returns value of -1

What has a title and blank entry, the listbox? That line subtracting 2 still worries me since lstBooks.SelectedIndex = 0 or 1 would result in an invalid index into the array/collection.


Please let us know which line of code is throwing the error. It might also help to show with a picture or something what you mean when you say you have two headers.




- HomeGrownCoder My posts are kept as simple as possible for easier understanding. In many cases you can probably optimize or spruce up what I present. Have fun coding!


No comments:

Post a Comment