User Controls not showing up in the toolbox

前端 未结 29 2178
暗喜
暗喜 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:27

    I fell into this trap just a couple of hours ago.
    I've got a .NET 2.0 Windows Application project with some custom UserControls; it worked fine. So I decided to order my files in subfolders, to make my project a little bit cleaner.
    After that, Visual Studio 2010 designer stopped loading my forms, and ToolBox won't show my controls anymore.
    I freaked out, moving back source files in project root, resetting ToolBox, but nothing seemed to work. After that, I remembered I used ReSharper "Remove Unused References", so I tried to put back unused reference, in particular System.Data: problem solved! :O I can't say you why, but this worked for me.
    Hope my experience can help someone else. :)
    Bye, Nando

提交回复
热议问题