Arraylist Values inserted always disappearing after the project compiled!

hyakie.ikari

New member
Joined
Oct 30, 2006
Messages
3
Location
Bandung Indonesia
Programming Experience
3-5
Hi,
I am Using VB.NET2003 FW1.1!
I have problem with this Class!!


Public Class MyComponent
Inherits System.ComponentModel.Component

Public Class ItemCollections
Inherits System.Collections.ArrayList

Public Sub New()
MyBase.new()
End Sub

Public Class ValueItem
Private _item As String

Public Sub New()
Me._item = "NewItem"
End Sub

Public Property Item() As String
Get
Return Me._item
End Get
Set(ByVal Value As String)
Me._item = Value
End Set
End Property

End Class 'ValueItem

Default Public Shadows Property Item(ByVal index As Integer) As ValueItem
Get
Return MyBase.Item(index)
End Get
Set(ByVal Value As ValueItem)
MyBase.Item(index) = Value
End Set
End Property

End Class 'ItemCollections

Public Sub New()
MyBase.New()
End Sub

Private _items As ItemCollections

'I have this ArrayList Property in my Components Class:
'All the Values I have inserted are always disappearing after the project compiled!!

Public ReadOnly Property Items() As ItemCollections
Get
Return Me._items
End Get
End Property


End Class 'MyComponent


All the Values I have inserted using Collection Editor at the Design-Time are always disappearing after the project compiled!
Please someone help me!! How to avoid My Values from disappearing?
:confused:
 
Back
Top