Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inheritance Form Designer Bug?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00745759
Message ID:
00745764
Vues:
27
Is Form1 declared as ABSTRACT? .NET IDE instantiates the parent object when child is opened in a designer. ABSTRACT clause won't let it happen. Also, if you have any code into constuctor of the parent, it will fire.

>Hello,
>
>I have set up 2 Forms. Inheritance structure:
>Windows.System.Form
>...+Form1
>.......+Form2
>
>Wenn now opening Form2 with VS Form Designer I get an error Message that the baseclass Marcus.Test.Form1 can not be loaded. Has anyone got an idea how to get around this without compiling form1 into an own assembly ?
>
>Marcus
>
>Code snippets of Class definition
>
>namespace Marcus.Test
>{
>	public class Form1 : System.Windows.Forms.Form
>	{
>......
>
>namespace Marcus.Test
>{
>	public class Form2 : Form1
>	{
>
>
>
>
- Jayesh
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform