0

I have created a custom button (you know, with all that eye-candy stuff etc). That control is based on several other dlls because i want to make set of controls that have the same base (i had already created progressbar, label and button).

But there's a problem - when i import reference to my button to some other project (so i can use my button as a regular button) i have to manually import all those dlls my button depends on! Is there a way to automatically import all needed dlls (references) whenever i import my button? You know - when i drag my control from toolbox on to form, I want that C# automatically loads ALL dlls that added control depends on. Is there a way to do it?

1 Answer 1

0

Right click the reference -> Properties -> set Copy Local = True

If even with this, the dlls is not being copied, them you're probably referencing them in the GAC. You'll have to remove those GAC references...

See http://msdn.microsoft.com/en-us/library/wkze6zky(v=vs.80).aspx

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.