Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
StackOverFlow Error
Message
From
08/07/2004 16:14:11
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00922183
Message ID:
00922198
Views:
17
This message has been marked as the solution to the initial question of the thread.
Shawn,

If you notice in your other post, I corrected you on what this problem is. To reiterate, you need to do this:
private m_HadError;
public bool HadError
{
	get { return m_HadError;}
	set {m_HadError = value;}
}
~~Bonnie

>Hi everyone,
>I subclassed a text box from MM, now i want to add a custom property to that text box.
>
>i added the following code to it and now i get a
>
>Exception of type System.StackOverflowException was thrown.
>
>
>error when i try to set the property.
>
>Any Ideas? this is the code to add the property :
>
>
>public bool HadError
>{
>	get { return HadError;}
>	set {HadError = value;}
>}
>
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform