User Controls not showing up in the toolbox

前端 未结 29 2182
暗喜
暗喜 2020-12-13 12:21

I have some UserControls that I created in ProjectA. I have ProjectB that has a windows form that I want to put the controls on. Both of these projects are in a single sol

29条回答
  •  爱一瞬间的悲伤
    2020-12-13 12:44

    Providing you already tried tinkering with:

    • Tools > Options > Windows Forms Designer > General : AutoToolboxPopulate
    • Tools > Options > Text Editor > XMAL > Misc : AutoToolboxPopulate
    • created a default constructor
    • build your project / reset the toolbox and add manually your tab

    Yet you still see it greyed out..

    Check your path length and check the charcters being used in your absolute path.

    I had a project residing in "C:\Users\myName\myCompany\R&D\Projects"
    And after few hours found out that the "R&D" is the problem..
    The '&' did not allow my usercontrol items to be enabled in my toolbox.

提交回复
热议问题