User Controls not showing up in the toolbox

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

    Before trying to add a custom control, make sure that it is compatible with the .Net version of your current project.

    I was trying to add a custom control to toolbox for a project for Windows CE 5.0 and .Net Compact v3.5 on VS2008. I did all those previous suggestions but nothing worked. The control shows up when "show all" is checked but it is grayed , even in "Choose Items" menu is checked.

    I created a new project with .Net v2.0 and it worked perfectly.

提交回复
热议问题