Adding a custom user control and using it with VB Form Designer

Anthony White 21 Reputation points

Following verbatim the Visual Studio tutorial

I created the test DemoCalculator Custom Control Project class library. I then create the DemoCalculatorTest forms application.

1) When I Add>Reference, the Reference the Custom Control project does not show up. I manually browse and add the dll, but am unable to add it to the toolbox to use it in designer mode. I've tried difference things, like manually adding click on the control in the Reference dialog, manually adding the control to the toolbox using Choose Items, but nothing works.

Is it possible to create a custom control and use it in designer mode at all?

I am using Visual Studio 2022 V 17.3.6, .NET Framework Version 4.8.04084

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,737 questions
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,404 questions
{count} votes

3 answers

Sort by: Most helpful
  1. LesHay 7,106 Reputation points


    The custom control should show in the ToolBox after it has successfully compiled.
    Try rebuilding, making sure there are no errors etc - you should not need a reference. Then check the ToolBox (mine always show up at the top)

    0 comments No comments

  2. Anthony White 21 Reputation points

    I created a Windows Forms Control Library, but the target framework is 4.7.2.

    The Windows Forms App is 6.0

    I am not sure how to upgrade the Forms Control Library to 6.0

    0 comments No comments

  3. Anthony White 21 Reputation points

    It looks like I've successfully updated the Forms Control Library to .Net 6.0.


    0 comments No comments