Question

If i first add it to the toolbox, an exception will be thrown, saying the dll is already referenced.

and i hate to add it to ui programmatically.

any idea? i have to add it programmatically?

Was it helpful?

Solution

how about removing previous reference and browsing to the dll ?

OTHER TIPS

firs add a new user control to your project after coding has finished, then Build your project. so you'll see the your created control appears in the toolbox(at the top), then just drag & drop it on your form or any ui and if you want to load a control from a DLL just add a new tab in your tool box then right click on it and select "choose items..." and then in the .Net Framework Components tab click "browse" and navigate to your dll , and then open the dll file and confirm the choose items dialog and you see the user control is now ready for drag & drop in your tool box :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top