Hello Everyone,<br><br>I am getting this "Control has no parent window error" when i try to load a form in insert mode. i mean to say it has datasource assigned to it.<br><br><br>I have a Tabsheet with a panel control.<br>
<br>So code snippet like.<br>here Tdemo is derived from TCustomDropDownCheckBox<br><br>X = Tdemo.create (self)<br>X.parent := Panel.<br>.X.datasource = yz;<br><br>Problem is when the dataset is loaded in insert mode at first instance it gives this error. Then when i move to other component and comes back it works fine.<br>
<br>I suspect parent handle is not getting assigned.<br><br>Any help or idea on this be appreciated<br>-- <br> vikas<br>