Mike Sue-Ping
Cambridge, Ontario, Canada
Bonnie,
In my original post, I meant to say background color instead of foreground color.
When I choose to reset the background color, it shows as light gray and is the form's background color. The button class's setting for background color is Blue. There is no code in the button class.
What I'd like to have happen when I reset a value in the property page is to have that value reset to the class value like in VFP's IDE. Perhaps the control should not have been a user control?
Mike
>Mike,
>
>No, you're not doing anything wrong. It sounds like the button class that the co-worker created is where the problem is. What *does* happen when you choose Reset? What's the code for the button class?
>
>~~Bonnie
>
>
>>Hi,
>>
>>I drop a user control onto a windows form. This control is a button that a co-worker created as a "template" (I like to call it a "class" like in VFP, yeah, yeah, I know, everything in .Net is a class). After dropping it, all properties are set to its "default" or inherited values. If I then overwrite one, say the foreground color, then try to reset it by right clicking on the property and choosing Reset, the value that is restored is NOT that of the "template/class".
>>
>>What am I doing wrong? If I'm not doing anything wrong then is it just me or is anyone else annoyed at this behavior.
>>
>>.NET Newbie,
>>
>>Mike
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement