G
Guest
I've got two files
Action.vb
Public Class Actio
Private _Type As Strin
Public Property Type() As Strin
Ge
Return _Typ
End Ge
Set(ByVal Value As String
_Type = Valu
End Se
End Propert
End Clas
and Complaint.vb
Public Class Complain
Private _ComplaintNumber As Strin
Public Property ComplaintNumber() As Strin
Ge
Return _ComplaintNumbe
End Ge
Set(ByVal Value As String
_ComplaintNumber = Valu
End Se
End Propert
Public Sub New(
'default constructo
End Su
Public Class ActionsLis
Inherits System.Collections.CollectionBas
Default Public ReadOnly Property Item(ByVal Index As Integer
Ge
Return CType(list.Item(Index), Action
End Ge
End Propert
Public Sub Add(ByVal SingleAction As Action
list.Add(SingleAction
End Su
End Clas
End Clas
When I try to us
Dim MyComplaint As New Complain
Dim MyAction As Actio
MyComplaint.ActionsList.Add(MyAction
I don't get any intellisense from VS after MyComplaint.ActionsList and the IDE gives me "Reference to a non-shared member requires an object reference"
Any ideas?
Action.vb
Public Class Actio
Private _Type As Strin
Public Property Type() As Strin
Ge
Return _Typ
End Ge
Set(ByVal Value As String
_Type = Valu
End Se
End Propert
End Clas
and Complaint.vb
Public Class Complain
Private _ComplaintNumber As Strin
Public Property ComplaintNumber() As Strin
Ge
Return _ComplaintNumbe
End Ge
Set(ByVal Value As String
_ComplaintNumber = Valu
End Se
End Propert
Public Sub New(
'default constructo
End Su
Public Class ActionsLis
Inherits System.Collections.CollectionBas
Default Public ReadOnly Property Item(ByVal Index As Integer
Ge
Return CType(list.Item(Index), Action
End Ge
End Propert
Public Sub Add(ByVal SingleAction As Action
list.Add(SingleAction
End Su
End Clas
End Clas
When I try to us
Dim MyComplaint As New Complain
Dim MyAction As Actio
MyComplaint.ActionsList.Add(MyAction
I don't get any intellisense from VS after MyComplaint.ActionsList and the IDE gives me "Reference to a non-shared member requires an object reference"
Any ideas?