In a form OnCreate event, you have access to all components on the form, but
the Windows handle is not yet created. You cannot access any property or
methods that require the presence of a windows handle. When the OnShow
fires, the Windows handle has been created - because the VCL only creates
the handle when the form is shown.
From: "John Bird" <[EMAIL PROTECTED]>
Date: Wed, 10 Aug 2005 15:58:20 +1200
So if the Create event is after the DFM is read and all components exist it
looks like the components can be accessed...
is there anything that cannot be done....How about button1.setfocus - will
this fail in the Create event?
(I will experiment, just trying to get to the grips on good practice of
what
to put where, even Google doesn't shed much light)
John B
_________________________________________________________________
Looking for love? Check out XtraMSN Personals
http://xtramsn.match.com/match/mt.cfm?pg=channel&tcid=200731
_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi