C#中的Windows窗体问题 [英] Windows Form issues in C#
本文介绍了C#中的Windows窗体问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在用c#创建基于Windows的应用程序,当我在其中添加现有表单(由另一台机器开发)时,我将无法创建该表单对象来运行该winform.
请帮助我......
I am creating Windows based application in c#, when i add existing form in it(which is developed in another machine) then i will not able to create that form object to run that winform.
Please help me...............
推荐答案
亲爱的,
做一件事,
检查所添加表单的名称空间
或
创建一个新文件并复制现有代码,然后运行.
Hi Dear,
do one thing,
check the namespace of the added form
Or
create a new file and copy the existing code then run.
更好地创建新文件,然后从现有文件中复制代码并粘贴到创建的文件中...
Better to create new file and copy code from existing file and paste into the created file...
您可以执行此操作,步骤为-
在您要添加表单的地方打开ur Solutin资源管理器->在您的项目名称上单击鼠标右键->添加->现有项->从您要在其中添加表单的项目文件中选择->从ur选择表单名称现有项目->添加
完成!
您应该记住一件事,表单名称在您正在工作的项目中以及您要添加表单的项目中应该是不同的.
You can do it,the step will be-
Open ur Solutin explorer where u want to add form->right click on ur project name->Add->Existing Item->Select ur project file from where u want to add form->select form name from ur existing project->Add
Done!
One thing u should remember that the form name should be different in your project where u r working and the project from where u want to add form.
这篇关于C#中的Windows窗体问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文