>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