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

Form inheritance for different projects under a solution

I construct some base forms so that we can inherit from them in coding
different types of programs (eg. Master program, Inquiry program). I know
under a solution (*.sln) in VS2005, we can have more than 1 project. I
placed the base forms under one of the project and found that they cannot be
inherited by another project in the same solution file.

Question:
How to place the base forms (in VS2005), so that they can be inherited by
all projects under the same solution file?

Benson
VB2005, VS2005 std
Jan 19 '07 #1
2 1067
Benson,

They can be inherrited, however you need to give the right namespace for
that project you are inheriting.

Cor

"Benson" <be*******@yahoo.com.hkschreef in bericht
news:%2****************@TK2MSFTNGP04.phx.gbl...
>I construct some base forms so that we can inherit from them in coding
different types of programs (eg. Master program, Inquiry program). I know
under a solution (*.sln) in VS2005, we can have more than 1 project. I
placed the base forms under one of the project and found that they cannot
be inherited by another project in the same solution file.

Question:
How to place the base forms (in VS2005), so that they can be inherited by
all projects under the same solution file?

Benson
VB2005, VS2005 std

Jan 19 '07 #2
Yes. After I re-build the solution, I see the base forms.

Thanks.
Benson.

"Cor Ligthert [MVP]" <no************@planet.nl¼¶¼g©ó¶l¥ó·s»D:%2******** ********@TK2MSFTNGP03.phx.gbl...
Benson,

They can be inherrited, however you need to give the right namespace for
that project you are inheriting.

Cor

"Benson" <be*******@yahoo.com.hkschreef in bericht
news:%2****************@TK2MSFTNGP04.phx.gbl...
>>I construct some base forms so that we can inherit from them in coding
different types of programs (eg. Master program, Inquiry program). I know
under a solution (*.sln) in VS2005, we can have more than 1 project. I
placed the base forms under one of the project and found that they cannot
be inherited by another project in the same solution file.

Question:
How to place the base forms (in VS2005), so that they can be inherited by
all projects under the same solution file?

Benson
VB2005, VS2005 std


Jan 19 '07 #3

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

Similar topics

6
by: Johnny van Cadsand | last post by:
Hi, I know how inheritance works. But do i have to put all the inherited class files in the same directory as the class file which inherits is in?? (VB.NET) When i have a baseclass which i...
0
by: TEK | last post by:
Hello We have a quite huge project. To limit the solution size, rebuild time and so on we have divided the project in two different solution. One solution that holds the buiness entities, or...
19
by: Mike Tyka | last post by:
Hello community, i'm fairly new to using the STL but i've been experimenting a bit with it. I tried to derive a new class say MyString from string like so: class MyString: public string{...
7
by: Hazz | last post by:
Are there any good references/articles/books which provide clarity toward my insecurity still on deciding how to model a complex system? I still feel uncomfortable with my understanding, even...
0
by: Selden McCabe | last post by:
I have two projects in a solution. One project (called the MyBase project) contains a form, called frmBase. I want to add a form to the second project that inherits from frmBase. If I...
60
by: Shawnk | last post by:
Some Sr. colleges and I have had an on going discussion relative to when and if C# will ever support 'true' multiple inheritance. Relevant to this, I wanted to query the C# community (the...
26
by: nyathancha | last post by:
Hi, How Do I create an instance of a derived class from an instance of a base class, essentially wrapping up an existing base class with some additional functionality. The reason I need this is...
18
by: Diogenes | last post by:
Hi All; I, like others, have been frustrated with designing forms that look and flow the same in both IE and Firefox. They simply did not scale the same. I have discovered, to my chagrin,...
7
by: ademirzanetti | last post by:
Hi there !!! I would like to listen your opinions about inherit from a STL class like list. For example, do you think it is a good approach if I inherit from list to create something like...
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: 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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...

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.