473,378 Members | 1,393 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,378 software developers and data experts.

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 1368
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.