In order to embed third party dll into my user control, I have added the dll to the project and set it to embedded resource and then added it to the references.
In order to load it I have used :
AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);
It works fine when adding user control to Visual studio 2012 toolbox, but when I try to do the same in VS2008 or VS2005 I get error:
"there was error loading types from assembly <OurUserControl>.dll, could not load file or assembly <third party dll name> .dll version:....
Any advice would be highly appreciated
Thanks