Discussion:
Add existing Form project to a MDI Project
(too old to reply)
Morris Neuman
2009-08-25 02:15:01 UTC
Permalink
Hi
Im working in VS2008 C#. I created a Windows Form Solution/Project called
"Mailbox" that compiles to an Mailbox.EXE and runs fine as a single form
program. The form is basically a database table manager to add, edit, and
delete records from a DB table.

Now I want to Create an new MDI program called "CMManager" to contain/host
the "Malbox" form as well as many more similar forms to be created.


If I add the entire pjoect it will just create the Mailbox.exe as a seperate
program. I want to just move the form into a new MDI Solution and create a
new executable CMManager.exe and Mailbox will be just one of many Child forms
of the CMManager.

Do I have to manually copy the Mailbox.cs and Mailbox.[designer].cs and
other files to the new project folder and add them as existing items?
Besides the form there are also Database/dataSources (custome queries and
all) that the Mailbox project/form refer to. Do I have to manualy rerceate
those too in the new MDI project? ie the .xsd file and all the other
associated files for the data sources

What is the most efficient / right way to get this accomplished?
How can I do it?
--
Thanks
Morris
Zhi-Xin Ye [MSFT]
2009-08-25 09:29:03 UTC
Permalink
Hi Morris,

You can change the project ouput type of the "Mailbox" project to "Class
Library", and add the Mailbox.dll to your MDI project.

Steps for your information:

1. In the Sulution Explorer, right click on the Mailbox project and select
the Properties;
2. On the Application tab, select "Class Library" from the "Output type"
list;
3. Switch to the MDI project, and add a reference to the Mailbox project;
4. Use the form in the Mailbox project in your MDI project as you need;

Best Regards,
Zhi-Xin Ye
Microsoft Managed Newsgroup Support Team

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
***@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Zhi-Xin Ye [MSFT]
2009-08-28 05:46:22 UTC
Permalink
Hi Morris,

Does my reply make sense to you? If you have any questions or concerns,
please do not hesitate to let me know.

Have a good day!

Best Regards,
Zhi-Xin Ye
Microsoft Managed Newsgroup Support Team

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
***@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.
Loading...