Windows Form Designer Error
-
Hi, I made 2 custom controls, both of which have a default constructor. The problem is that when I try to drag one of them into the form from the toolbox, I get a message saying that an exception occured while trying to create an instance of the control. The exception text is "Object reference was not set to an instance of an object." Now with the other control, it works Ok when I drag it onto the form and works as expected when I run the program, however if I try to delete it from the form I also get an "Object reference was not set to an instance of an object." exception. Can you please help me locate the source of this error? Thanks for your help. Josef
-
Hi, I made 2 custom controls, both of which have a default constructor. The problem is that when I try to drag one of them into the form from the toolbox, I get a message saying that an exception occured while trying to create an instance of the control. The exception text is "Object reference was not set to an instance of an object." Now with the other control, it works Ok when I drag it onto the form and works as expected when I run the program, however if I try to delete it from the form I also get an "Object reference was not set to an instance of an object." exception. Can you please help me locate the source of this error? Thanks for your help. Josef