473,473 Members | 2,110 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Build Error in Inherited Forms

I have a Studio issue where I have a base Form - FormA. FormB inherits from
FormA. I have a property or a control in FormB called Prop1 that was NOT
inherited from formA.

Sometimes, when I edit a completely unrelated class, I get the following
build error:

Name Prop1 is not declared.

The file name is the file for FormB.

If I close the solution and open the solution back up, everything compiles.
This occurs even without ever touching the source for FormA or FormB.

Recreating the formB doesn't fix the issue either.

Does inheritance just not work that reliably in .Net 2003?
Jul 21 '05 #1
2 1372
Sean,
Does inheritance just not work that reliably in .Net 2003?


I think I can understand your question, however this addition to your
question makes that I do not understand what you are really asking.

Do you want a solution for your problem or an answer on the last question?

As an answer on that, until now I have not seen any problem.

Cor
Jul 21 '05 #2
I have had the same thing happen for quite a while. Got used to closing and
reopening the solution whenever the build failed. Typically there are several
forms with "undeclared" controls. On at least one occasion I opened one of
those forms in the designer and found the "undeclared" control had in fact
disappeared. However, after closing and reopening the solution the control
reappeared.

Have you found out any more about this issue since your original post?

"Sean" wrote:
I have a Studio issue where I have a base Form - FormA. FormB inherits from
FormA. I have a property or a control in FormB called Prop1 that was NOT
inherited from formA.

Sometimes, when I edit a completely unrelated class, I get the following
build error:

Name Prop1 is not declared.

The file name is the file for FormB.

If I close the solution and open the solution back up, everything compiles.
This occurs even without ever touching the source for FormA or FormB.

Recreating the formB doesn't fix the issue either.

Does inheritance just not work that reliably in .Net 2003?

Jul 21 '05 #3

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

Similar topics

10
by: Douglas Buchanan | last post by:
I am using the following code instead of a very lengthly select case statement. (I have a lot of lookup tables in a settings form that are selected from a ListBox. The data adapters are given a...
1
by: Boniek | last post by:
Hi Sometimes I have problems with my forms which are inherited from other forms and base forms are in other project. When I change something in base forms my normal forms are broken in Visual in...
8
by: Spam Trap | last post by:
I am getting strange resizing problems when using an inherited form. Controls are moving themselves seemingly randomly, but reproducibly. "frmBase" is my base class (a windows form), and...
0
by: Sean | last post by:
I've been noticing that I seem to be "losing" the ability to compile inherited forms. The first couple debug starts are fine but occassionally the compiler complains of a variable or a control that...
4
by: dbuchanan | last post by:
Is the following behavior normal? Both the 'Protected sub' in the inherited form and the 'Private Shadows sub' in the derived form fires. My interpretation of MSDN help on the topic "Shadows"...
2
by: Peter | last post by:
I have a base form from which many forms inherit. The base form is in one project, and the inherits form is in another project. Both projects are under the same solution space. Both forms...
0
by: Robert Smith | last post by:
Hello, I have a vb.net solution containing many projects. One Project contains base forms and my main project contains forms inherited from these forms. I have get spurious errors in my Inherited...
2
by: Sean | last post by:
I have a Studio issue where I have a base Form - FormA. FormB inherits from FormA. I have a property or a control in FormB called Prop1 that was NOT inherited from formA. Sometimes, when I...
4
by: asad.naeem | last post by:
hi to all this is the problem about inheritence. I have designed a form with some essential controls which are required for every form which will inherited from it. for example i have Button1 on...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.