M
mmcd79
Can someone tell me if it's possible to create a property for a
usercontrol, that is essentially readonly, but able to be set via the
designer before runtime?
I have a property for a control that I want to set essentially one
time. This property is basically a static property that can change at
the developer's wish, but only one time. I need to be able to
reference the property later.
I've tried setting the property to readonly, but that hides it from the
designer properties window. I've tried various attributes to no avail
(i.e. DesignOnly(true)). When I do this, I cannot set the property at
design time(the value doesn't hold). But in later code I can change
that property without fail.
I'm confused. Please help.
usercontrol, that is essentially readonly, but able to be set via the
designer before runtime?
I have a property for a control that I want to set essentially one
time. This property is basically a static property that can change at
the developer's wish, but only one time. I need to be able to
reference the property later.
I've tried setting the property to readonly, but that hides it from the
designer properties window. I've tried various attributes to no avail
(i.e. DesignOnly(true)). When I do this, I cannot set the property at
design time(the value doesn't hold). But in later code I can change
that property without fail.
I'm confused. Please help.