Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default value for property
Message
From
17/09/2005 20:15:49
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01050633
Message ID:
01050669
Views:
9
Einar,

Yeah, I usually initialize the variable when it's declared rather than in the constructor. I don't think it matters which way you do that.

~~Bonnie



>Bonnie,
>Thanks for the answers. You might have answered something similar before (I might be loosing my mind today). I started looking through some old user controls and I noticed that I can get around initializing the values in the constructor by initializing the private variable that the property is using. I do this when the variable is declared.
>I have been using the RefreshProperties attribute in the past when I create usercontrol that consists of other controls and it seems to refresh the design surface when I change a property. In this case I am painting my own control and I am trying to get the designer to change based on my selection in the property sheet. Do I have to call the onpaint or refresh by myself in the set of the property?
>
>Einar
Bonnie Berent DeWitt
NET/C# MVP since 2003

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

Click here to load this message in the networking platform