View Single Post
  #5 (permalink)  
Old November 8th, 2004, 05:54 PM
ja8261 ja8261 is offline
Authorized User
 
Join Date: Aug 2004
Location: OKC, OK, USA.
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The code builds with no errors, however I now get the error at the line: Dim myObj as Object = ListBox1.Items(e.Index). The error message is:

"An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in system.windows.forms.dll

Additional information: Specified argument was out of the range of valid values."


I checked the value of myObj and it was equal to 'Nothing' while e.Index = -1. Any reasons as to what is going on and how to fix it?

Jeff Armstrong
Sr. Systems Mgr
SBC Services, Inc.