I am building a simple user control - a listview, a couple buttons. I build
the solution, drop the control on a form, and all is well. I then go back,
modify the Usercontrol, rebuild, and still all is well. However, at some
point I get the "Object Refererence not
set to an instance..." error when I rebuild. If I try to drop the control
on another form I get the same error. I do not believe it is the code in the
usercontrol, as it works fine as a "Form" rather than a "Control".
Additionally, I have removed all the code from the Usercontrol except Public
Class SearchCriteria Inherits System.Windows.Forms.UserControl and the
Windows Form Designer generated code and I still get the same error.
Any help/suggestions would be appreciated.