Control or not to Control?

Posted on 2006-05-05
Last Modified: 2010-04-16
I need to create a .dll in VS2003 .NET that will process imported data (string or textbox) , calculate then export in the same manner. I find several articles concerning 'visual controls' like super datagrids etc...

I'm currently using my latest creation as a math.cs in a C# project but would like to convert it to a .dll for possible distribution sake.

Q. Can a control be something other than a visual component?
Question by:kvnsdr
    LVL 35

    Accepted Solution

    A c# project can compile to a dll. Just make a project of type "class library"  then add your .cs files to it.  Then when it compiles you will have a dll.
    LVL 5

    Assisted Solution

    What you are looking for is probably a component.

    Create your Math.cs in a ClassLibray project. This will create a dll with your class.

    You can than add it to the references and use it in your main project.

    In VS 2005, if you derive your class from Component, you can even add it visually from the toolbox to your form in Design mode (it will be placed in a separate panel below the panel with the form). I dont know how this works in VS 2003.

    using System;
    using System.ComponentModel;
    using System.Collections.Generic;
    using System.Diagnostics;
    using System.Text;

    namespace MathComponent {
          public partial class Math : Component {
                public Math() {

                public Math(IContainer container) {

    LVL 1

    Author Comment

    Do you know of a good VS2005 .NET C# control web site or book?

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
    We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…
    This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now