when exactly HWND is created

  • Thread starter Thread starter shark
  • Start date Start date
S

shark

Hi,

My question is, when exactly window is being created? Let's assume that we
have user control placed on any form. Form's contructor create user control
and adds it to its controls collection. But when exactly this window is
created? When form window is created ?
I thought that it's created when first windows property is get/set, but
initializecomponent do it several times.

Thanks

SS
 
Hi shark,

The handle is created as you add the control to a ControlCollection.
 
Back
Top