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

Inherit a form from other form

Hi all!

Is that possible, linke in C#? How? I cannot find how do it.

Thanks in advance.

--
Leyendo:
El vizconde de Braguelonne (Dumas)
-------------------
Estadísticas BOINC: http://www.boincsynergy.com/images/stats/comb-3905.jpg
-------------------
Las mujeres son como los perros, mueven la cola para conseguir dueño.
-- Anónimo.
Apr 22 '06 #1
2 1147
Hi solved!
Is that possible, linke in C#? How? I cannot find how do it.


public ref class MyDerivedForm: public MyOtherForm
{
};

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/
Apr 22 '06 #2
Yes, but then Visual Editor says:

The designer could not be shown for this file because none of the
classes within it can be designed. The designer inspected the following
classes in the file: TestForm --- The base class 'FormIdentities' could not
be loaded. Ensure the assembly has been referenced and that all projects
have been built.
Hide

at
System.ComponentModel.Design.Serialization.CodeDom DesignerLoader.EnsureDocument(IDesignerSerializati onManager
manager)
at
System.ComponentModel.Design.Serialization.CodeDom DesignerLoader.PerformLoad(IDesignerSerializationM anager
manager)
at
Microsoft.VisualStudio.Design.Serialization.CodeDo m.VSCodeDomDesignerLoader.PerformLoad(IDesignerSer ializationManager
serializationManager)
at
System.ComponentModel.Design.Serialization.BasicDe signerLoader.BeginLoad(IDesignerLoaderHost
host)
I've tried creating a normal form and then changing the antecessor and
including header of the parent class.

--
Leyendo:
ORA:CLE (O'Donnell)
-------------------
Estadísticas BOINC: http://www.boincsynergy.com/images/stats/comb-3905.jpg
-------------------
El primer deber del amor es escuchar.
-- Proverbio latino.

"Jochen Kalmbach [MVP]" <no********************@holzma.de> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Hi solved!
Is that possible, linke in C#? How? I cannot find how do it.


public ref class MyDerivedForm: public MyOtherForm
{
};

--
Greetings
Jochen

My blog about Win32 and .NET
http://blog.kalmbachnet.de/

Apr 22 '06 #3

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

Similar topics

7
by: Fabian Neumann | last post by:
Hi! I got a problem with font-family inheritance. Let's say I have CSS definitions like: p { font:normal 10pt Verdana; } strong { font:normal 14pt inherit;
3
by: Boaz Ben-Porat | last post by:
I Know, ... a struct can not be inherited. ** Is there any tricky way to extend a struct ? ** I have to implement a component that represent a date (without time) that has a small number of...
6
by: Mohammad-Reza | last post by:
I wrote a component using class library wizard. In my component i want to in order to RightToLeft property do some works. I can find out if user set this property to Yes or No, But if He/She set it...
5
by: Jeff | last post by:
Greetings I am beginning a web app. I am using C# aspx forms for my web pages. Is it possible to create/use one aspx file as a base from which to derive other aspx files? I can not get this to...
0
by: varun varun | last post by:
hello friend, while developing an asp.net application, i created a base form(say mybaseform1) with certain links on it. then i tried to inherit the same from in other application forms by...
4
by: David | last post by:
I have trying to have a webform inherit controls from another form and can't get it to work Say I have a form that saves the person's demographic info. ****one.aspx**** //I have an object...
8
by: Issac | last post by:
Hi, I created an Inherit UserControl which inherits textbox with additional property say 'Type'. I used in my forms and everything works fine. But afterward, I want to remove (or rename) such...
0
by: Zhi | last post by:
i have base form that contains a public imagelist. the image list has several images in it. my child forms inherit this base form and the imagelist. the inheritted imagelist contains all the images...
2
by: Wu Qinliang | last post by:
I created a Windows form named myform1, and put some controls on it. I need another form named myform2. Because myform2 is similar to myform1, so I want myform2 to inherit from myform1, i.e: ...
2
by: GTalbot | last post by:
Hello fellow comp.infosystems.www.authoring.stylesheets colleagues, Imagine this situation: #grand-parent-abs-pos { height: 400px; position: absolute; width: 600px; }
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...

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.