Question : Custom Control Designer Error

Hello, I am having an issue with my custom control. I have designed a custom uwi box that takes uwi locations and validateds them. The control accepts a custom object or creates one on load if one is not provided, and it uses a static class for validation. It has a public property so some one can get the custom object back and save the results. The control itself works fine, it does everything it is supposed to do. The issue I am having is that when I goto a form that has the control on it I get a designer error saying " The Designer loader did not provide a root component but has not indicated why"  Some times I can click ignore and continue and sometimes the control itself is missing from the page. When this happens if I restart visual studios and open the form the control is on everything is fine until I make a chage to the code of that form and it has to rebuld. Even when the designer shows my control missing if I run the project it shows up where it is supposed to. This happens to all the forms that I put my contol on.

Thank you in advance for any help on this.
Attachments:
 
The control itself without the save or validation objects
 

Answer : Custom Control Designer Error

1) Is there any advantage to using a custom control?

2) I can't compile that user control, because it has references to classes that aren't part of the .zip file.

3) If I was trying to do something like what you described, I would think about designing a form, with the text box controls, and then embed the form on another form, instead of a custom user control.
Random Solutions  
 
programming4us programming4us