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:
00745791
Views:
25
Jayesh,

thanks, good suggestion but non of the forms are abstract and there is no code at all (besides VS generated InitializeComponents()) in the constructor. And both forms don't have any controls they are absolutly empty out of the VS Box.

Marcus

>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
>>	{
>>
>>
>>
>>
Marcus Alt
TRIA IT-Consulting GmbH
Working hard | for your success
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform