I have a DatePicker
custom control that I am trying to add to toolbox. The name of the file is BasicFrame.WebControls.BasicDatePicker.dll
and I go through the procedure of right click in Toolbox > Choose Items and then selecting the file after browsing to it under .NET Framework components.
I however get this error message:
There are no components in that can be placed on toolbox
Why do I get this message and how can I resolve it?
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.
Right click on the toolbox on a tab to add a DLL generated by a class project. Select "Choose Item" to add a DLL to the current tab or first create a tab. Browse for the DLL and follow the prompts.
From the Tools menu, click the Options item. Click General under the Windows Forms Designer item and ensure that the AutoToolboxPopulate option is set to True.
In some cases you can solve this problem with drag and drop:
Sometimes drag and drop does not work also. In this case you can
Have you checked the visibility of the custom classes?
If you haven't declared them as public they will default to internal and hence aren't exposed to Visual Studio for use.
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