I am creating controls at run time without setting the reference in the COMPONENTS Dialog box.
PROBLEM:
1) i am using VBControlExtender Object and creating ActiveX control(eg:FlexGrid Control).I am not setting the reference during the design time.this program allows me to create the flex grid but when i try to access the properties that are paterning to the grid it gives me the Error:"Object does not support this Property or Method". it allows only the intrensic method and property of VBControlExtender (eg:top,left,Visible etc...)
But if i set the reference at thedesign time it allows me to access all the methods and the properties.
I want to know what happens when you set the reference at the design time?
Which API functionc Are internally called? is it possible to for me to call these API functions at runtime and make my Control work?
2) how do i get the handle of windowless control?i mean which API function should i use?

Please help me as soon as possible or my job is in danger.

Pavan