views:

148

answers:

2

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?

A: 

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 :)

ramtinova
you didn't get my question. the control is in dll, and it's already referenced by my project, how to make it show up in the toolbox window? if you choose browse to select the dll, then the ide will complain the dll is already referenced.
Benny
+1  A: 

how about removing previous reference and browsing to the dll ?

ramtinova
that's exactly what i end up did.
Benny