I want to create a CustomControl in toolbox in my C# application
Right-click in the Toolbox, and from the pop-up menu choose Customize Toolbox, Add/Remove Items, or Choose Items (depending on the version of Visual Studio). In the Customize Toolbox dialog, click the . NET Framework Components tab.
To create a group of controlsDrag a Panel control from the Windows Forms tab of the Toolbox onto a form. Add other controls to the panel, drawing each inside the panel.
If your component is within the project, you can have them automatically added to the toolbox. Go to: Tools -> Options -> Windows Forms Designer and enable the "AutoToolboxPopulate" option.
If it's in a separate solution, you can build the control library, and drag and drop on the toolbox to add the components.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With