Each component placed on a VB form gets a unique name and values for Top, Left, Width, Height, etc. How do I access those from within the activeX component? I need this to pass as a parameter to a database function.
Code within an ActiveX object is independent of the form it is on. Within the activeX, I can get to some of the properties (such as Width, Height) but not Name. The name I get back when trying that is the default, not what is assigned on the form on which it is placed...
Thanks, cdukes, but I got the following error on the Get Property:
"Private object modules cannot be used in public object modules as parameters or return types for public procedures, as public data members, or as fields of public user defined types"
I'm building an OCX library of objects...they need to be public.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.