Sharing a winform
-
I have several projects that make up part of a solution. What I would like to do is share two froms across two seperate projects. Is this possible and how? Thanks in advance. Stephen
-
I have several projects that make up part of a solution. What I would like to do is share two froms across two seperate projects. Is this possible and how? Thanks in advance. Stephen
How about putting that form in a separate assembly and accessing it from your two projects? Regards Senthil _____________________________ My Blog | My Articles | WinMacro
-
How about putting that form in a separate assembly and accessing it from your two projects? Regards Senthil _____________________________ My Blog | My Articles | WinMacro
OK. Sounds good but I have not done this before and i am new at C#. Have you a link to a sample or something? Thanks.
-
OK. Sounds good but I have not done this before and i am new at C#. Have you a link to a sample or something? Thanks.
It's fairly simple. 1. Add a new "Class Library" project in your solution. 2. Drag and drop the form that is to be shared, into the new project. 3. Add references to the new project from the projects that need to use the form (Right click on the project in Solution Explorer, click Add References and go to the Projects tab). That should do the trick. Just make sure the shared form is under the same namespace, otherwise, you need to add a "using" directive. Regards Senthil _____________________________ My Blog | My Articles | WinMacro