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

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
Developer technologies | C#
Developer technologies | 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.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Viorel 125.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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.