I have a C# project. It's possibile save my forms as DLL, so I can call it?
Thanks.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
AngeloPosted Oct 16, 2007, 10:03 AM
I will try.
AlanPosted Oct 16, 2007, 9:38 AM
Yes, it's possible.
If you right click on the Project name in Solution Explorer, select properties and then the Application tab, there's a setting called "Output type" which needs to be changed from Windows Application to Class Library. The file called (or originally called) program.cs, which contains the Main() method, should be also be removed from the project before rebuilding as you don't need this for a dll.
Needless to say, make sure you back up the existing solution before attempting this so you can return to that if something goes wrong.