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:
00746350
Views:
30
Hi Marcus,

There are known "issues" with the designer and inherited controls. My guess is that VS .NET doesn't have Form1 in memory when you work with Form2. It works sometimes because of how the memory is loaded in. I have seen this with the Toolbox before when loading custom controls. There really isn't a work around but just remembering the steps you take to have Form2 load properly. Hopefully, the next version will have this fixed.

>Even more interessting is the fact that this doesn't always appear. At the moment I can see the form2 ? And I didn't change anything, just opened the project again to test a few things ?
>Has anyone else seen this problem, is it a bug ?
>
>Marcus
>
>>>>>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
>>>>>	{
>>>>>
>>>>>
>>>>>
>>>>>
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform