[DUG] control has no parent window error Delphi 2007
Vik Vasudev
vikas.image at gmail.com
Tue Sep 6 16:39:47 NZST 2011
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20110906/5298048e/attachment-0001.html
More information about the Delphi
mailing list