473,396 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Inherited members not appear in intellisense

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
Jan 22 '07 #1
3 1473
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

"Antonio" <an*******@hotmail.comwrote in message
news:AB**********************************@microsof t.com...
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
Jan 22 '07 #2
"Antonio" <an*******@hotmail.comschrieb
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

Jan 22 '07 #3
VS2005 on .NET Framework 2.0. All members declared as Public, both base
class (ProjectA) and derived class (ProjectB).
Thanks.

Antonio

"Armin Zingler" <az*******@freenet.dewrote in message
news:eb**************@TK2MSFTNGP06.phx.gbl...
"Antonio" <an*******@hotmail.comschrieb
>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
Jan 23 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Dick | last post by:
I noticed that Control.Focused and Control.ContainsFocus doesn't appear in my intellisense list. Is this expected?
7
by: Tron Thomas | last post by:
Under the right compiler the following code: class Base { public: virtual void Method(int){} }; class Derived: public Base {
1
by: Iulian Ionescu | last post by:
I have the following problem. I derived a class from ArrayList to provide some additional events I need. Then I derived 2 different classes from this one and each of them defines an indexer that...
4
by: wackyphill | last post by:
...Such as ToString(), Equals(), etc. public override String ToString() { return base.ToString(); } The above doesn't work. Any ideas? And before you ask, Yes I do have a sane reason for...
1
by: skootr | last post by:
I have a Public Interface defined in a class module. I also have a form that implements that interface After building the solution, I added an Inherited Form (inherited from the above-mentioned...
2
by: lovecreatesbeauty | last post by:
I'm disturbed on this question on a long time. I think if I finally get understand it with your kind help, I will get close to a excellent C++ programmer. And I only can rely on your expertise and...
14
by: lovecreatesbea... | last post by:
Could you tell me how many class members the C++ language synthesizes for a class type? Which members in a class aren't derived from parent classes? I have read the book The C++ Programming...
19
by: jan.loucka | last post by:
Hi, We're building a mapping application and inside we're using open source dll called MapServer. This dll uses object model that has quite a few classes. In our app we however need to little bit...
2
by: eggie5 | last post by:
Hi, I have a class Dog which derives from Animal. Suppose my instance of Dog is bulldog. bulldog has all the members of Animal plus Dog. How can copy just the members from Dog to a new Dog...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.