![]() |
Click here to advertise with us
|
|
|||||||
| Windows Forms Discussion related to Winforms application development |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
THis is the error i get upon executing
CollectionBase.List.Add() And I don't get HOW it can even generate an IndexOutOfRangeException(). I mean, forget why it happens, i want to know HOW because this doesn't make any sense. Quote:
Jaeden "Sifo Dyas" al'Raec Ruiner |
|
||||
|
If you're using .NET 2.0 as your profile says then you shouldn't be inheriting CollectionBase at all. You should be inheriting System.Collections.ObjectModel.Collection(Of T), where T is the type of the items the collection will store. For instance, to create a strongly-typed collection of Thing objects you declare the class like this:
Code:
Public Class ThingCollection
Inherits System.Collections.ObjectModel.Collection(Of Thing)
End Class
__________________
![]() 2007, 2008, 2009, 2010 Why is my data not saved to my database? | Communicating between multiple forms MSDN: Data Walkthroughs | "How Do I?" Videos My Blog: Custom Events | Dynamic GDI+ Drawing |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|