Resources » Code Snippets » Visual Studio

How to add a windows control library template to Visual C# Express


Posted Date: 15-Oct-2008  Last Updated:   Category: Visual Studio    
Author: Member Level: Gold    Points: 5



Visual C# Express 2005 does not come with a project template for creating custom controls (.dll files). You can create your own template by following these steps:

1. Open Visual C# Express 2005.

2. Create New windows Application with the name: MyLibrary

3. From the Project menu select Add User Control. Click on Add

4. Close any forms windows.

5. In Solution Explorer, Delete forms related files (the corresponding .cs files should be deleted by this step)

6. From the Project menu select MyLibrary Properties.

7. In the Application tab set the Output Type to Class Library.

8. In the file Program.cs replace
Application.Run(Form1)

with
Application.Run()

9. Build the Solution. There should be no errors and the bin/Release folder should have a MyLibrary.dll file

10. From the File menu select Export Template.

11. Select Project Template then Next .

12. Under Template Options change the name of the template to Windows Control Library and the Description to Create windows Control .dll. Click on Finish.

12. Close C# Express 2005.

The next time you open Visual C# Express, you will find your newly created template ready to use.


Did you like this resource? Share it with your friends and show your love!

Responses to "How to add a windows control library template to Visual C# Express"

No responses found. Be the first to respond...

Feedbacks      

Post Comment:




  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:   Sign In to fill automatically.
    Email: (Will not be published, but required to validate comment)



    Type the numbers and letters shown on the left.


    Submit Article     Return to Article Index

    Subscribe to Subscribers
    Awards & Gifts
    Talk to Webmaster Tony John

    Online Members

    Rameshkumar
    More...
    Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India