CogentP CogentP - 1 year ago 66
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??

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download