开发者

how to add a user control from a dll(already referenced) to ui in design mode?

开发者_运维知识库

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?


how about removing previous reference and browsing to the dll ?


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜