I have property in a class
Public Class ClsAIcomp
Private _pContext As String
Public Property pContext() As String
Get
Return _pContext
End Get
Set(ByVal Value As String)
_pContext = Value
End Set
End Property
end Class
and I'm setting value of pContext in the same class
Now I need to read this value in other class say secondclass
I'm using like this
Dim myaicomp As new ClsAIcomp
dim strabc as string = myaicomp.pContext
but I see nothing in the value
what I'm doing wrong
and what is the best way to pass the value between the classes
any help would be appriciated