User Control creating a control dynamically while in designer
- From: "Mark" <mjohnson@xxxxxxx>
- Date: Mon, 11 Dec 2006 14:10:18 -0700
My UserControl needs to dynamically create a contained control based on a
property that is able to be set at design time.
In the constructor for my UserControl it sets up it's default display state
which includes the contained control. Everything works fine when the
default control is created here.
In the designer if I change the property which would change the contained
control to be re-created, the contained control looses the knowledge that
it's participating in design time and defaults to rendering in run time
mode.
Is there a way to tell the dynamically created control that it is
participating in the designer and should render in design time?
Thanks,
Mark
.
- Prev by Date: Property value not saved
- Next by Date: Work around for KB839202 "DesigmMode property .... is always false"
- Previous by thread: Property value not saved
- Next by thread: Work around for KB839202 "DesigmMode property .... is always false"
- Index(es):