Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reset a value in the property page...I hate it!
Message
From
12/09/2004 02:59:33
 
 
To
11/09/2004 10:14:49
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00941301
Message ID:
00941425
Views:
9
Hi, Mike,

Just as a follow-up...

If you have a button class where you defined a blue background, drop the button class on a form, change the button to red on a grey form and then click RESET, the color of button will usually appear as grey, as you discovered (not the blue, as one would hope).

However, if you compile the form, run it, or maybe even just close the form and re-open it, the color will probably show as blue. It's because of the mechanics of VS.NET redrawing the form and any code in the constructor of the button class. But I can certainly understand why seeing it in the same color as the form, and not the blue, would lead to a conclusion that something is wrong.

I've run into this a few times, and have just always 'accepted' that it gets resolved after a compile/run. In reading Bonnie's messages, maybe there is some combination of using DefaultValue (and the code that both she posted and I previously posted) to make it better and to cover all the angles.

Kevin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform