T
Tamir Khason
I have a user control (control_1) wich holds other user control (control_2)
In control_1 there is:
if(!DesignMode) {cont = new control_2; }so in design mode I can not see the
user control_2 inside, this works fine untill I add control_1 to form or
other control. In this case the constrain !DesignMode returns true
(control_1 thinks that this is run time). How to make condition (without
messing with each one of forms, holds control_1) not to initialize control_2
while degin mode
TNX
In control_1 there is:
if(!DesignMode) {cont = new control_2; }so in design mode I can not see the
user control_2 inside, this works fine untill I add control_1 to form or
other control. In this case the constrain !DesignMode returns true
(control_1 thinks that this is run time). How to make condition (without
messing with each one of forms, holds control_1) not to initialize control_2
while degin mode
TNX