C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




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


Posted Date: 15 Oct 2008    Resource Type: Code Snippets    Category: Visual Studio

Posted By: Payal Jain       Member Level: Gold
Rating:     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.




Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
How to add a windows control library template to Visual C# Express  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: how to use a connection the web.config
Previous Resource: Adding a Timer control in Visual Basic
Return to Discussion Resource Index
Post New Resource
Category: Visual Studio


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

internet fax

Contact Us    Privacy Policy    Terms Of Use