Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inheritance Form Designer Bug?
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00745759
Message ID:
00745764
Views:
26
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform