Hello Everyone,

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.


I have a Tabsheet with a panel control.

So code snippet like.
here Tdemo is derived from TCustomDropDownCheckBox

X   = Tdemo.create (self)
X.parent := Panel.
.X.datasource = yz;

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.

I suspect parent handle is not getting assigned.

Any help or idea on this be appreciated
-- 
  vikas
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [email protected] with 
Subject: unsubscribe

Reply via email to