473,403 Members | 2,338 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,403 software developers and data experts.

Form inheritance

How do I create an inherited form in a Class Library project ?
Nov 21 '06 #1
3 1490
Hi Alan,

1. Add to your project a reference to the System.Windows.Forms.dll assembly
2. Create a new class and use the ":" syntax:

public class MyDerivedForm : System.Windows.Forms.Form
{
}

--
Dave Sexton

"Alan T" <al*************@yahoo.com.auwrote in message
news:uS**************@TK2MSFTNGP04.phx.gbl...
How do I create an inherited form in a Class Library project ?

Nov 21 '06 #2
Hi,
It didn't work.

I need to make myself clear:
I create a class library and created a form with buttons as ancestor form.
Now I want to create inherited form from this ancestor form, I tried to
create an inherited form but cannot pass through the wizard.

"Dave Sexton" <dave@jwa[remove.this]online.comwrote in message
news:uK*************@TK2MSFTNGP03.phx.gbl...
Hi Alan,

1. Add to your project a reference to the System.Windows.Forms.dll
assembly
2. Create a new class and use the ":" syntax:

public class MyDerivedForm : System.Windows.Forms.Form
{
}

--
Dave Sexton

"Alan T" <al*************@yahoo.com.auwrote in message
news:uS**************@TK2MSFTNGP04.phx.gbl...
>How do I create an inherited form in a Class Library project ?


Nov 22 '06 #3
Hi Alan,

Try following the instructions here:

"Walkthrough: Demonstrating Visual Inheritance"
http://msdn2.microsoft.com/en-gb/lib...d2(VS.80).aspx

--
Dave Sexton

"Alan T" <al*************@yahoo.com.auwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Hi,
It didn't work.

I need to make myself clear:
I create a class library and created a form with buttons as ancestor form.
Now I want to create inherited form from this ancestor form, I tried to
create an inherited form but cannot pass through the wizard.

"Dave Sexton" <dave@jwa[remove.this]online.comwrote in message
news:uK*************@TK2MSFTNGP03.phx.gbl...
>Hi Alan,

1. Add to your project a reference to the System.Windows.Forms.dll
assembly
2. Create a new class and use the ":" syntax:

public class MyDerivedForm : System.Windows.Forms.Form
{
}

--
Dave Sexton

"Alan T" <al*************@yahoo.com.auwrote in message
news:uS**************@TK2MSFTNGP04.phx.gbl...
>>How do I create an inherited form in a Class Library project ?



Nov 26 '06 #4

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

Similar topics

0
by: Hemraj Julha | last post by:
Hi (Sorry if this appears twice but I posted this yersterday and I can't see it in the forum today) I'm trying "Visual Inheritance" in C# and facing an issue which might be related to my...
1
by: Hemraj Julha | last post by:
Hi I'm trying "Visual Inheritance" in C# and facing an issue which might be related to my ignorance about namespaces and location of the source code within the folders so I'll try to explain my...
3
by: Peter Cresswell | last post by:
Hi guys/gals, I'm using VS.net 2003 and having trouble with the following: I am trying to inherit a base class into a web form, but VS will then not allow me to add any ASP.NET controls using...
0
by: Frnak McKenney | last post by:
I'm running into problems with VisualStudio.NET2003 and Windows Forms inheritance. It _feels_ like a bug, but it could just as well be a misunderstanding on my part regarding how the VS Designer...
11
by: PAul Maskens | last post by:
The form designer adds unnecessary code to the section when using a subclassed control. I've reproduced this in VS.NET 2002 and VS.NET 2003 so it's pretty fundamental. Outline steps: Create a...
13
by: Just Me | last post by:
I have two forms. Each contains a property, say Prop. I do Public FormBeingUsed as Form .. .. .. Then I do FormBeingUsed= Form1 or maybe
4
by: Alan T | last post by:
How do I create a form inherited from an existing form in the same project ?
4
by: Mikus Sleiners | last post by:
I can't seem to add new controls to form that is inherited from another form. I have BaseForm wich have table layout on it 2 panelsm and some buttons. Now i create InheritedForm : BaseForm and...
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...
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
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
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
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.