c# - VS 2010 Designer error when passing arguments to custom's control main function -


i've written custom control. need public function parent form, control in. pass instance in designer this:

this.control= new mainform.control(this); 

but vs designer throws error ans says:

the variable 'control' either undeclared or never assigned.

this sounds designer issue me. do;

  • re-build current solution
  • restart visual studio

as alternative, can create seperate assembly dll custom controls.


Comments