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 (particularly the Name) to pass as a parameter to a database function.
just a shot in the dark but maybe you could use something like...
don't have time to make an ActiveX control to check if this would work but if you could get the Parent (container) of your control then you could loop through the controls within that container as shown below
Code:
Dim oCtrl As Control
For Each oCtrl In YourControl.Parent.Controls
If oCtrl Is YourControl Then
Debug.Print "found myself"
Else
Debug.Print oCtrl.Name
End If
Next oCtrl
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.