Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 add it into the designer. I right clicked on my project then clicked on add new item. From there I clicked on custom control, renamed it to CustomPanel, and placed my code in it. I tried everything from restarting VS to deleting and creating a new custom control. Is there anything that I am missing? This is being done in Visual Studio 2005.

like image 307
Seb Avatar asked Dec 07 '25 09:12

Seb


1 Answers

Right click the Toolbox, then Choose items and browse for the .dll file that contains your control. The Toolbox will add all the components found in that dll. Also check in Tools -> Options -> Windows Forms Designer if the AutoToolboxPopulate setting is set to true.

like image 103
devnull Avatar answered Dec 08 '25 22:12

devnull