Adding a User Control
-
Hi, For some reason none of my User Controls (authored in C#) can be inserted into forms any more, every time i try, it just says that it can't load the library, and I should check the library is OK, I've checked numerous times and it still won't work!!! Any ideas? Dave Kerr focus_business@hotmail.com www.focus.esmartweb.com
-
Hi, For some reason none of my User Controls (authored in C#) can be inserted into forms any more, every time i try, it just says that it can't load the library, and I should check the library is OK, I've checked numerous times and it still won't work!!! Any ideas? Dave Kerr focus_business@hotmail.com www.focus.esmartweb.com
It could be a number of things. Have you removed any auto-generated code from the constructor or anywhere else in your User Controls? This could be one source of trouble. Something else to check would be if you added your custom controls to your Toolbox through the Toolbox editor but now build your User Controls to a different destination. The only other problem I could think of would be some sort of trouble with your design-time license. Is your User Control project in the same solution as the form which you attempting to use the control on? If so, open your User Control files in the IDE and rebuild them. This will refresh the Toolbox's reference to your User Control. Then try adding the control to your form again. Hope this helps. Michael CSO, ActiveWare LLC http://www.ActiveWareSolutions.com