>hello,
>
>i created an activex control, and defined a function call MyFunction()
>when i tried to create the control during runtime i get the error
>'Object does not support this property/method'
>
>heres the code...
>
>Dim MyControl as Control
>...
>Set MyControl = Controls.Add("MyActiveXSample.MyControl", "MyControl")
>MyControl.Visible = true
>
>'*** ERROR HERE ***
>call MyControl.MyFunction()
Is MyFunction declared Public?
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com