User Controls not showing up in the toolbox

前端 未结 29 2194
暗喜
暗喜 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-13 12:36

    Symptom 1: The Design Views for Form, UserControl, & Component were FAILING!

    • My Form design view was failing w/ the msg "can not find 'User Control'."
    • If I could get the Form design view to work it was very unstable & corrupted all to hell w/ any change.

    Symptom 2: The UserControl & Component in the Toolbox

    • Were grayed out in the Toolbox & showed a garbled name
    • "Choose item" in the Toolbox context menu showed garbled name & no namespace

    Solution: Set scope to Public in the vb behind UserControl, & Component

提交回复
热议问题