开发者

Add a Form that is in my Project to another Project

I have a Project in which there is a form that has several objects (controls) in itself. I want to add this form to another Project i开发者_JS百科n another Solution. How to I can do this. Thanks.


You mean you have an Form in your Project and you want to add it to another Project in some other Solution. If this is the case then.


Follow the steps:

  • Right Click on Project in Solution Explorer
  • Select Add -> Existing Item ,
  • In the Add Existing Item Dialog Box browse to the "Form.cs" you want to Add.

It will be copied to your local Solution Project Folder with every thing in it (including designer.cs and resource files).


Notes:

  • Just after adding the Form's ".cs" file you may only see the Form.cs not the Design view. Just open the File in code editor and the Visual Studio will automatically draw the Form in Designer for Design Support.

  • This operation will add the Files as a Copy. They will be independent to the changes to the Original Form. If you want to have changes then add it as a Link. (Select Add as Link in the Add Existing Item Dialog Box)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜