how can i get the .Name property of a referenced control?
Posted on 2000-05-15
If I put a control on a form and then programaticly create another control of the same type then set that 2nd control = to the one on the form I create a reference to the orginal control. But I can not seem to get the .Name property of the orginal control I set the reference to.
Although that doesn't sound like it makes sense because I would have had the name of the control to set the programaticly created one to eqaul it, it is not that simple.
My programaticly created one was set to it through the use of a collection object so I dont actually know the name of the control it was set to. For some reason the .Name property does not show up when I see the list of properties/methods after the "." when typeing its name..
I might add that the control is a custom created user control. When I type the controls name explicitly I see the name property in the list but when I type the referenced objects name i dont see the .name property in the list.
Case where I see the .Name Property:
Case when I DONT see the .Name Property:
dim TempObject as GDBE
set TempObject = form_Customer.GDBE_Customer
Then If I typed:
TempObject.(Here I would see all my public methods/properties, but Name does not show up!)