G
Guest
(Originally posted this in VC++ section .. whoops
I'm working on a series of projects which have a few things in common, which has been abstracted into an object we'll call ParentForm. I started a new (actually, the first) project. It's "main" form is called ChildForm, and it inherets from ParentForm. I added ParentForm.cs to the project via the Solution Explorer. If I right click on ParentForm.cs and choose "View Designer" I can see the designer just fine. The form appears exactly as it should. However, if I do the same for ChildForm.cs, I get this error: "An exception occured while trying to create an instance of <namespace>.ChildForm. The exception was "Object reference not set to an instance of an object." Oddly enough though, I can compile and run ChildForm fine. I just can't design it. Any suggestions
//ParentForm.c
namespace myNamespac
public class ParentForm : System.Windows.Forms.For
//Member variables such as Menu, MenuItems, TextBox, etc
public ParentForm(
InitializeComponent()
...
..
// No Mai
//ChildForm.c
namespace myNamespac
public class ChildForm : ParentFor
//No new members yet as I'm just trying to get the design set up
public ChildForm() : base(
InitializeComponent()
..
..
static void Main(
Application.Run( new ChildForm() )
I'm working on a series of projects which have a few things in common, which has been abstracted into an object we'll call ParentForm. I started a new (actually, the first) project. It's "main" form is called ChildForm, and it inherets from ParentForm. I added ParentForm.cs to the project via the Solution Explorer. If I right click on ParentForm.cs and choose "View Designer" I can see the designer just fine. The form appears exactly as it should. However, if I do the same for ChildForm.cs, I get this error: "An exception occured while trying to create an instance of <namespace>.ChildForm. The exception was "Object reference not set to an instance of an object." Oddly enough though, I can compile and run ChildForm fine. I just can't design it. Any suggestions
//ParentForm.c
namespace myNamespac
public class ParentForm : System.Windows.Forms.For
//Member variables such as Menu, MenuItems, TextBox, etc
public ParentForm(
InitializeComponent()
...
..
// No Mai
//ChildForm.c
namespace myNamespac
public class ChildForm : ParentFor
//No new members yet as I'm just trying to get the design set up
public ChildForm() : base(
InitializeComponent()
..
..
static void Main(
Application.Run( new ChildForm() )