Inherited members not appear in intellisense

A

Antonio

Hi,

I have an abstract ClassA in ProjectA:
Public MustInherit Class ClassA
:
End Class

I inherit ClassA on ClassB from ProjectB:
Public Class ClassB
Inherits ProjectA.ClassA

:
End Class

I instantiate ClassB in ProjectC as follow:

Imports ProjectB

Public Class ClassC
Dim objB As New ClassB

objB. ' <-- Members in ClassA not appearing.
:
:
End Class

Anybody knows what is happening here? Thanks.

Regards,
Antonio
 
A

Armin Zingler

Antonio said:
Hi,

I have an abstract ClassA in ProjectA:
Public MustInherit Class
ClassA
:
End Class

I inherit ClassA on ClassB from ProjectB:
Public Class ClassB
Inherits ProjectA.ClassA

:
End Class

I instantiate ClassB in ProjectC as follow:

Imports ProjectB

Public Class ClassC
Dim objB As New ClassB

objB. ' <-- Members in ClassA not appearing. :
:
End Class

Anybody knows what is happening here? Thanks.


VB 2003 or 2005? Are the members declared Public? Note that "Dim" means
"Private" at this location. What if you type the name manually - can it be
compiled or is the member not found? In ProjectB, does intellisense find the
member?

I have tried it in VB 2005 and it worked (Public member as ...)


Armin
 
A

Antonio

Hi,

This problem has been resolved. The solution:

1. Remove ProjectA.dll reference from ProjectC.
2. On ProjectC properties page, add back the ProjectA reference.

Thanks.

Antonio
 
A

Antonio

VS2005 on .NET Framework 2.0. All members declared as Public, both base
class (ProjectA) and derived class (ProjectB).
Thanks.

Antonio
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top