Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot access activex functions
Message
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00513273
Message ID:
00513277
Views:
15
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform