Custom control does not appear in Toolbox

José Carlos 886 Reputation points
2023-02-11T20:52:26.7566667+00:00

Friends.

I created a custom control. Once created, I added a new Windows Form project in the same solution for me to place the control created on this new Form. When I click on the form, the custom control does not appear in the Toolbox. When I click on the control, it appears in the Toolbox. That is, I am not able to include this control in the form. Does anyone have any idea what's going on?

See images.

User's image

User's image

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,415 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,283 questions
0 comments No comments
{count} votes

Accepted answer
  1. Viorel 119.7K Reputation points
    2023-02-11T21:27:21.55+00:00

    Probably the project that includes Form1 is based on .NET Framework, while ColorSelection is based on .NET. Try using the same kind of .NET.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. José Carlos 886 Reputation points
    2023-02-11T22:01:36.35+00:00

    Good night Viorel.

    That was it. I redid the program and it worked. I had created the control first and then added the form.

    Now I created the form first and then the control. It worked out.

    Once again thank you very much for your help.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.