关于在c#中运行windows appliaction [英] regarding running windows appliaction in c#

查看:71
本文介绍了关于在c#中运行windows appliaction的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,

i已经在C#.net中设计了两个Windows应用程序,我必须加入这两个。

并在其他的...运行一个.iecall秒主页进入第一个..

我怎么称呼它..(不调用.exe文件)

解决方案

你开发了一个窗口应用程序2个不同?正确..





在窗口应用程序中你不能合并2个单独的表格....但如果你想查看其他表格然后去找这个代码







- >取一个窗口申请..

- >在其他窗口应用程序中添加已经完成的表单。\



ex:

1 .goto解决方案资源管理器

2.选择你的项目,右键单击并选择添加现有项目。

3.small窗口将打开然后选择所有表格你已经准备好了并添加



- >所以其他项目的所有形式都将在这里添加。

- >现在,如果你想在form1中查看form2,那么在按钮点击或任何其他事件中使用以下代码..





Form2 fr = new Form2();

fr.show();


你有很多选择:



  1. 合并这两个程序,使它们作为一个组合的可执行文件运行,具有多个类
  2. 使一个项目成为可由第一个项目调用的DLL。
  3. 使用 处理以将第二个作为独立的可执行文件运行


sir,
i have designed two windows application in C#.net and i have to join these two.
and run one in other..i.e.call seconds home page into first one..
how can i call it.. (not calling .exe file)

解决方案

you are developed a window application of 2 different? correct..


in window application you can not merge 2 individual forms.... but if you want to view the other form then go for this code



->take one window applciation..
->Add the forms which your are already done in other window application..\

ex:
1.goto solution explorer
2.select your project,right click and select add existing items.
3.small window will open then select all the forms you are all ready done and add

-> so all the forms of other project will going to add here.
->now if you want to view the form2 in form1 then use the following code in button click or any other events..


Form2 fr=new Form2();
fr.show();


You have a number of options:


  1. Merge the two programs so that they run as one combined executable, with multiple classes or forms.
  2. Make one project a DLL that can be called by the first one.
  3. Use the Process class to run the second as an independent executable


这篇关于关于在c#中运行windows appliaction的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆