Can any One help me? I am try to build a custome user control in vb.net 2003 Framework 1.1 using MSFlex Grid and And a TextBox, But after Sucessfully Build the solution , When I am try to use this control to my another program its Thrown an System.StackOverFlowException.
I am very much confuse that How can I solve this problem?SampleCode as an attachment "SampleCode.txt" Please find the same
Waiting for Reply.
Thanks in Advance.
Shubhajyoti Ghosh.
I don’t know VB.NET so I can’t be much help in locating precisly your error, but I would guess in infinite recurcive call of some function, that way you fill your stack and get this Exception. You should localize the function that causes this and look at what function it calls and so forth
Hi,
I have had a look through your code and have found what appears to be a recursive call:
Public Property TxtBoxToolTips() As String
Get
Try
Return Me.TxtToolTips
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Get
Set(ByVal Value As String)
Try
Me.TxtBoxToolTips = Value ' Recursive call here
Me.ToolTip1.SetToolTip(Me.TextBox1, Me.TxtToolTips)
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Set
End Property
I think you meant to put:
Public Property TxtBoxToolTips() As String
Get
Try
Return Me.TxtToolTips
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Get
Set(ByVal Value As String)
Try
Me.TxtToolTips = Value ' Changed here
Me.ToolTip1.SetToolTip(Me.TextBox1, Me.TxtToolTips)
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Set
End Property