CogentP CogentP - 4 months ago 24
C# Question

.Net : Do I need to create a Custom Control in a different Project?

this question may be asked, but I am wanting to create Custom Controls, and for some reason, every tutorial online says we should create a special project and then reference the dll into the mother project.

Do we really need to do it like that? I'm trying to use ClickOnce and its simpler to deploy when its only one Project.

I want to know, is it necesary to do it like that, and if not can I just create a CustomControl o UserControl and have that called??


It is not necessary but recommended to define your custom control in a separate class library project, so reusing it is as easy as making a reference to that project.