Click here to Skip to main content
15,902,904 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi All

Iam working in windows application in .net.I want to convert each forms in my windows application to dll. how to convert already coded windows forms to dll.

Thanks in Advance
Amrutha
Posted
Updated 18-Jun-18 0:14am

1 solution

Create a new Class Library project (either one per form, or one to cover them all).
In the Solution Explorer pane, right click your DLL project name, and select "Add...Existing Item".
In the dialog that results, select the file or files that make up your form(s) - you only need the myForm.cs or MyForm.vb files, not the .designer.cs or .resx files - they will be picked up automatically.
When you press OK, the files will be copied to your new project.
Done! Compile, and you are off.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900