Environment versions
Network:
Windows 2000 Server
>Hi All, I have a usercontrol in a class library that consists of nothing more than text boxes and labels. I have been using it on tab pages without a problem for a long time. Today I tried to drop it on a form from the toolbox and received a VS error: Failed to create component xxxx System.Runtime.InteropServices.COMException (0x80004005) Adding this project as a reference would cause a circular dependency etc... I've googled but haven't found anything of any help - any ideas ???
I assume the UserControl is in a different assembly to the Form in which you want to use it?
If the assembly/project containing the UserControl contains a reference to the assembly/project containing the form then you can get this error since the IDE will attempt to add a reference in the opposite direction.....
If that's the case you will need to re-organise your assembly/class structure - maybe put the UserControl in a separate assembly (you can still use the same namespace)
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only