Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Objects
Message
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00497117
Message ID:
00497188
Views:
11
>is it possible to create an instance of an object wherein the only clue u have about the object is its name...
>
>this sample doesnt work, but is this possible...
>
>dim oButton as object
> set oButton = createobject("ButtonName")
> oButton.properties = xx
>
>thanx,
>Benj

What kind of object? Your sample will work as is with ActiveX DLL and EXE component.

If you are talking of OCX, you must use Controls.Add.
É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