>Hi,
>I there way to know if container add to the form in design time or runtime
>
>For example.. I need to have in the Container.Init()
>IF expression.. if container was add to the form using AddObject.. I must add bindevents code.. if container was add to the form in design time - then ignore bindevents .
>
>Any idea,
>Thanks
>Denis
Just add one more property in that class. Make it to be .T. as default. Then in Init:
IF this.BindEventsProp
ENDIF
Then if you add that container in design mode just change this property to .f.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.