Pucca,
You can definitely include a form in a class library. A form is nothing
more than a class. All you have to do is make sure the form is public. You
might want to consider whether or not there are menus on the form, if it is
used as a child form, then it will not take to nicely, depending on how
menus on the parent form are used.
All you have to do is create a "Class Library" project and then you can
add your form code to it, and then reference it from other applications.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Pucca" <Pu***@discussions.microsoft.comwrote in message
news:BC**********************************@microsof t.com...
Hi, I'm using vs2005, .net 2.0, Win2k server for a Windows applcaiton. I
have a main application where there is a a form and the codes that I would
like to make it reuseable by other applications.
1. I already have a classlibray project but I don't think I can include
a
"form" in it, right?
2. So, do I make this form into a dll so other application can include it
as a reference?
3. To do the item 2, does that mean that I would create a new project and
add the form and the code in it. But how to specify to generate a dll
instead of a project that produce .exe file after it's compiled?
Thank you.
--
Thanks.