Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extender.Parent -> not usable?

Status
Not open for further replies.

LazyMe

Programmer
Jan 13, 2003
938
MX
Hi,

I've got quite a strange and rather annoying problem:

The code is like this:


Dim objParent as Object

Set objParent = Extender.Parent


Looks rather simple and according to everything I've read it should work. When I go to my watch window I can find everything I want to know about the parent. I can access the controls collection, drill down to the items etc. I can even find all window handles of the controls located on the parent. In short: the reference seems ok, since VB figured this all out.

The funny (and most irritating) thing is that I can't use the reference in code. No matter what property I want to inquire it's always

Runtime error 438:
Object doesn't support this property or method.


either in code or in the immediate window....


Maybe it is important to mention that the parent is a UserControl as well (not a Form).



Greetings,
Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top