C# Custom Control doesn't show up in the toolbox

前端 未结 5 1750
囚心锁ツ
囚心锁ツ 2021-01-28 19:50

I have created the custom control which is just a panel that I will be using to render my DirectX code. However, I am unable to see the control in my toolbox for when I try to a

5条回答
  •  星月不相逢
    2021-01-28 19:58

    Is the control class public ? The default template creates an internal class.

    Is there a public parameterless constructor ? The designer needs it.

提交回复
热议问题