UKU 0 Newbie Poster

Hi everyone,


i'm trying to pass parameters from one form to another with using public parameters (you know get - set) but in form load it comming the old parameter not the one i have called...so it doesn't refresh

i saw it a little bit and the parameter is taking the correct value but in form load it show the last loaded

my code is here :


this one i use in form1 :
-----------------------------------------------------
Public ReadOnly Property GetThisAnkand() As Ankand
Get
Return _Ankand
End Get
End Property
-----------------------------------------------------
ankand is a public class in a namespace where i have decleres the properties like this
--------------------
Public Property AnkandID() As Integer
Get
Return _Ankand_ID
End Get
Set(ByVal value As Integer)
_Ankand_ID = value
End Set
End Property

-------------------

my AnkandID value here it ok it comes correct but in form2 it comes not correct and the source in form2 is :
----------------
#Region "Members, Constructors, Properties"
Private _Ankand As New Ankand
#End Region

#Region "Properties"
Public WriteOnly Property InitAnkand() As Ankand
Set(ByVal value As Ankand)
_Ankand = value
End Set
End Property
#End Region
--------------------
what i have done wrong....pls anybody can help me?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.