Quote:
Originally posted by powdir
mybase keyword only works if there is an inheritence relationship between classes ie. ClassB 'is-a' ClassA. What it LOOKS like you have here is a 'has-a' realtionship ie. ClassA has a ClassB delared within. I am guessing this cause you dont mention if you are inheriting classes although you do mention a parent-child setup ??!!...put me right if i am off the mark
To answer your question - ClassB does not know about the existence of ClassA and therefore you cant call ClassA methods from ClassB directly. You need to get a ClassA object reference for ClassB to become 'aware' of it...
if you made ClassA a shared (or even wrote an additional [shared] notifier class to manage method calls between instance objects) it would work but you would have to account for threadsafety etc. etc. (if thats important for you)
Any use to ya?
Cheers...