R
Richard
I'm trying to open a form based on the value that I am passing through
to it. I'm trying to open the Deals form on the basis of a sellerid
that I am trying to pass through to that second form.
At the push of a button on the first form:
Dim cfrmDeals As New frmDeals
cfrmDeals.SellerNo = Convert.ToInt32(txtSellerID.Text)
cfrmDeals.Visible = True
cfrmDeals.Activate()
As you can see this tries to set the SellerNo property on the Deals
form.
The property is set here:
Public Property SellerNo() As Integer
Get
Return SellerNo
End Get
Set(ByVal Value As Integer)
SellerNo = Value
End Set
End Property
However, in practice I keep getting this error message.
"An unhandled exception of type 'System.StackOverflowException'
occurred in Deals.exe."
If I step through it it gets oscillates just going between the 'Set'
line and the 'SellerNo=Value' line.
Anyone help?
Richard
to it. I'm trying to open the Deals form on the basis of a sellerid
that I am trying to pass through to that second form.
At the push of a button on the first form:
Dim cfrmDeals As New frmDeals
cfrmDeals.SellerNo = Convert.ToInt32(txtSellerID.Text)
cfrmDeals.Visible = True
cfrmDeals.Activate()
As you can see this tries to set the SellerNo property on the Deals
form.
The property is set here:
Public Property SellerNo() As Integer
Get
Return SellerNo
End Get
Set(ByVal Value As Integer)
SellerNo = Value
End Set
End Property
However, in practice I keep getting this error message.
"An unhandled exception of type 'System.StackOverflowException'
occurred in Deals.exe."
If I step through it it gets oscillates just going between the 'Set'
line and the 'SellerNo=Value' line.
Anyone help?
Richard